Blog Links

Fixes #155 #156
Preview

@daniel-coleman-1 I merged by outstanding PR into dev and pulled dev into this branch, so it should work now. After it finishes building, please update your preview link to include links to the specific posts that had links updated and add someone to review the PR.

@mcharg I'm struggling to find the format for preview links that works and not seeing it in the wiki anywhere, what's the correct format for the preview link?

This is the preview for the blog homepage and then you can navigate to the specific posts to get the link for the post.
https://dev-blog-nrrd.app.cloud.gov/


Petitions

Adds petitions model
Creates a petition when an apartment is created
Adds constraint for only one petition per apartment
Adds path/view for apartment show
Adds test framework - Rspec
Adds model and feature tests
closes #23

This looks like a great start to me, @kjs222! It looks like we are keeping users out of the petition creation for now, but I'm interested to see what you all decide tonight re: user authentication (#30).


[BUG] Inheritance not working for entities

Is there an existing issue for this?

[X] I have searched the existing issues

Nature of Your Project
TypeScript
Current Behavior
When an entity extends another entity, the generated file references a non-existing aspect and thus contain TS errors.

Related to #149
Expected Behavior
No response
Steps To Reproduce
entity Orders {
  id   : UUID;
  name : String;
}

entity FinishedOrders : Orders {
  foo : String;
}

Environment
- **cds-typer**: 0.19.0
- **cds**: 7.8.0

Repository Containing a Minimal Reproducible Example
No response
Anything else?
No response

Hi @aschmidt93 ,
thanks for reporting this issue! This is a critical problem and I will address it asap.
Best,
Daniel


Flow errors on unicode keys

This is valid JS.

Error: Unexpected token ILLEGAL

Code:
const CONVERSIONS = {
  m: 1,
  cm: 100,
  mm: 1000,
  μm: 1000000
}

FlowType Try

Yeah, this is a bummer :(
Gabe gave a great explanation in the original issue, #521. I'm going to merge this with that issue.
Thanks for filing an issue!

Thanks, sorry for the duplicate!


Fix path attribute causing false "unresolved module" error for submodules

fixed #1880

bors r+
Thanks!


Can I collect events 4768 and 4769

Hello team
Many thanks for the very well written documentation.
Can I please ask if it would be possible to configure the sensor to collect logs that aren't listed in here: https://learn.microsoft.com/en-us/defender-for-identity/deploy/event-collection-overview ?
More specifically, can the sensor be configured to collect event logs 4768 and 4769, please?

Hi @vbianconi88, thanks for writing into docs. Only the events listed in the docs are those that are supported for collection with Defender for Endpoint. If you'd like to collect other events, I suggest you contact the support team to understand how Microsoft tools can be answer your teams needs for these events.
I'm going to close this issue for now, but feel free to continue commenting if you have specific comments on the docs. We appreciate your contributions!
#please-close


Make TracingRunnable/Callable implement *Aware interfaces and Serializable

This PR resolves issues #3 and #4

Pull Request Test Coverage Report for Build 24

18 of 18 (100.0%)  changed or added relevant lines in 2 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+1.6%) to 17.297%

Totals

Change from base Build 23:
1.6%

Covered Lines:
352

Relevant Lines:
2035

💛  - Coveralls


Fix golangci-lint depguard rules for Windows systems

This PR refs #388.

I think we should finish #758 instead

I think we should finish #758 instead

Maybe we can merge it now so I can run linter locally and remove it next week when #758 would be done?

#758 is ready for review


On video preview the shown stream is not consistent with what is sent

At moment Verto does not handle double webcam.

Let me rephrase it:
The video preview is not consistent with the selected one.
So the call correctly uses the configured cam, while the preview always uses the "default".
this seems related to the underlying verto library.


Action click push notifocation

I can't get action click push notification. I want get action click because after click will open url . Thank you.
My code.
` componentDidMount() {
//console.log('wrapper did mount')
NetInfo.addEventListener('change', this._handleConnectionInfoChange );
NetInfo.fetch().done (
(connectionInfo) => { this._handleConnectionInfoChange(connectionInfo); }
);
//Config Push Notification
if(Platform.OS == 'ios') {
    FCM.requestPermissions()
    .then(e => {})
    .catch(() => {})
}
FCM.getFCMToken().then(token => {
    // console.log('token', token)
    if(token && token != undefined) {
        this._saveDeviceToken(token)
    }
})
this.refreshTokenListener = FCM.on(FCMEvent.RefreshToken, (token) => {
    // console.log('token refresh', token)
    if(token && token != undefined) {
        this._saveDeviceToken(token)
    }
})
FCM.getInitialNotification().then(notification => {
    if(notification && notification.opened_from_tray) {
        this._openUrl(this.state.url);
    }
});
this.notificationListener = FCM.on(FCMEvent.Notification, (notification) => {
    if(notification)
    {
        const url_open = notification.url;
        this.setState({
            url: url_open ? url_open : false
        })
        if(notification.local_notification) {
            if(notification.opened_from_tray) {
                this._openUrl(this.state.url);
            }
            return;
        }
        if(notification.opened_from_tray) {
            return;
        }
        const title = notification.fcm.title;
        FCM.presentLocalNotification({
            priority: 'high',
            title: title ? title : Params.Name,
            body: notification.fcm.body,
            big_text: notification.fcm.body,
            icon: 'pushicon',
            large_icon: 'joinmunch',
            url : url_open,
            lights: true,
            show_in_foreground: true,
            local: true
        })
        FCM.cancelAllLocalNotifications()
    }
})

}`

this.setState({
url: url_open ? url_open : false
})
sets states in next event loop. that might be your issue?
Does the callback get called?

When get notification i save url. I want get action click notification.

sorry I don't quite understand what you want

When you get a notification, when you touch it, it will open the app for you. I want to catch the event when you touch it. Previously, I could use get action
FCM.getInitialNotification().then(notification => {             if(notification && notification.opened_from_tray) {                 this._openUrl(this.state.url);             }         });
to click. But current i can't.

why currently you can't? someone opened an issue that notification.opened_from_tray is undefined in getInitialNotification

Previously after touch notification it will go to getInitialNotification. Current i don't see.

My Code
componentDidMount() {
//console.log('wrapper did mount')
NetInfo.addEventListener('change', this._handleConnectionInfoChange );
NetInfo.fetch().done (
(connectionInfo) => { this._handleConnectionInfoChange(connectionInfo); }
);
    //Config Push Notification
    if(Platform.OS == 'ios') {
        FCM.requestPermissions()
        .then(e => {})
        .catch(() => {})
    }

    FCM.getFCMToken().then(token => {
        if(token && token != undefined) {
            this._saveDeviceToken(token)
        }
    })

    this.refreshTokenListener = FCM.on(FCMEvent.RefreshToken, (token) => {
        if(token && token != undefined) {
            this._saveDeviceToken(token)
        }
    })

    FCM.getInitialNotification().then(notification => {
        if(notification && notification.opened_from_tray) {
            this._openUrl(this.state.url);
        }
    });
    this.notificationListener = FCM.on(FCMEvent.Notification, (notification) => {
        if(notification)
        {
            const url_open = notification.url;
            this.setState({
                url: url_open ? url_open : false
            })
            if(notification.local_notification) {
                if(notification.opened_from_tray) {
                    this._openUrl(this.state.url);
                }
                return;
            }
            if(notification.opened_from_tray) {
                return;
            }
            const title = notification.fcm.title;
            FCM.presentLocalNotification({
                priority: 'high',
                title: title ? title : Params.Name,
                body: notification.fcm.body,
                big_text: notification.fcm.body,
                icon: 'pushicon',
                large_icon: 'joinmunch',
                url : url_open,
                lights: true,
                show_in_foreground: true,
                local: true
            })
            FCM.cancelAllLocalNotifications()
        }
    })
}

I haven't changed any behavior recently. don't you see it in  FCM.on(FCMEvent.Notification?

yes. when click i don't see any one event in FCM.on(FCMEvent.Notification

so you are saying when you tap on notification you don't see any callback in javascript?
How about moving the listeners out of component lifecycle?

Previously my code same now. It still working when tab on notification but current it not wroking.

Hi @evollu, I'm having the same problem. When notification received, I can log it from notification listener. When I click the notification,it show FCM without any other data

Any idea to solve this issue?

@dashracer let me check

wait. what OS are you using?

@evollu Those screenshot from android

I don't have such issue with the example project in android

I am also facing the same issue as @ChanhTran255.
I didn't get the data when i click on notification.

I also want an event when notification is clicked. I want to navigate to particular screen when notification is pressed. Any Solution?


Going Forward + Suggestion For Data Management

So I have some free time the coming months and really want to see this project progress some. So what are some goals that are had for the site going forward? I'm a novice in JS and can manage HTML and CSS fine mostly. I'm willing to try working on some tasks.
Something I'm really not qualified to do though, is since the WebTorrent software allows you to add a # and then the hash and it will download at the URL with the proper scripts. How about the site has a database callback for the thumbnail and such and then there's a video player page that's designed like however. Then you can have users upload a description.txt that can be appended so that you still have descriptions. So the upload form would upload the torrent to a path on the server and the only information that would need to be stored would be the magnet link and title, tag, and thumbnail information. The process could stop around here and be totally anonymous, but if we kept it going and tied  the user to the torrent you could render user "Channels" or whatever you want to call them. To make the idea of having a file for description and one for video the file order would need to be universally the same like say always have the first character of the video filename be a period and if there's another file it has to come after the description.txt.
And I'm not sure how limited JS is but we may be able to use the api with https://github.com/feross/bittorrent-tracker so that when a video isn't being seeded it doesn't show on the page, or be faded to show that the tracker reads it as a dead torrent. I'm fairly certain this should be doable with JS and CSS

i think that channels are a good idea, we could call them "casts" or something better.
could there be a way to distribute the descriptions, thumbnails, and titles using IPFS, Dat, or Bittorrent? that could make the site more p2p and could probably help with the "dead torrent" problem (although it could cause a torrent to never be retrieved because of no seeders online at the time). we should also add a magnet link under the video for people who want to keep the video seeded using the WebTorrent Client.

Hi @Edward-Stryfe and @emuNAND thanks there are some really interesting ideas going on!
Making the site as decentralised as possible is a good goal to aim for, but I also want to make sure it is accessible to everyone on the web, including mobile devices which make up for about half of traffic. So getting the videos to stream on mobile is a number one priority.
One of the main reasons Fastcast went with WebTorrent is that it allows videos to be steamed much faster than other services, and this lets people upload videos without compromising on quality. If we can implement a way of keeping the site decentralised but making sure it is available to everyone that would be an amazing outcome!
Making sure the site works harmoniously with bittorent (and webtorrent) is important so I like the idea of storing thumnails and descriptions in the torrent. Having a decentralised database for all the torrents that is used by the website but can also be used by a client app (without the need of a central server) is something worth looking into. I'm going to have a play arround with https://www.bigchaindb.com
At this stage there are a lot of things to be improved on, so if you would like to work on something (it doesn't have to be big) let me know. I've been pretty busy with web dev work for clients which is why I haven't had much time to work on this project lately, but I've also picked up a lot of skills that I can use for this project. Any help would mean a world of difference!


⚠ ClamAV has degraded performance

In 1b8f3de, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 68 ms

Resolved: ClamAV performance has improved in c6f2dc2.


scrub Rollbar data

https://github.com/CartoDB/cartodb-central/issues/2244
Deployment plan

cc. @skgsergio

Changing the approach to what @amiedes suggested here

Acceptance ✅
You can see the result in this Rollbar test: https://rollbar.com/carto/CartoDB/items/41439/occurrences/123358243588/
Just a comment: should we remove also auth_token, enable_account_token, last_password_change_date, password_reset_sent_at?
(feel free to merge it)

Just a comment: should we remove also auth_token, enable_account_token, last_password_change_date, password_reset_sent_at?

good catch, let me remove those before deploying.
I'm assigning the PR to me


Front page light and dark mode

Fixes #37444

preview page: https://deploy-preview-45366--kubernetes-io-main-staging.netlify.app/

@sftim
please review the changes

@sftim
Current CSS it self, dark mode is working fine. attached the evidence taken from chrome.
If you want to change colorings any section in dark mode, i will do it
dark.pdf

@tamilselvan1102 if you'd like some more detailed feedback, message me directly on Kubernetes Slack and I'll see about a time slot for that (might have to be late March or April, I'm afraid).

/close


Photographs - US 04.01.01

As an owner, I want to take photos using the camera from the app, and attach one or more photographs to an item of mine.

functionality to add single pictures is done, just need to be able to add multiple pictures and add delete functionality


NOISSUE - Add MQTT forwarder

What does this do?
This pull request introduces MQTT forwarder for multi-protocol support explained in #1079.
Which issue(s) does this PR fix/relate to?
It is related to #1079, but this is PoC PR, and it does not resolve the issue.
List any changes that modify/break current functionality
Messages published from HTTP will be received on MQTT subs.
Have you included tests for your changes?
No.
Did you document any new/modified functionality?
No.

Codecov Report

Merging #1164 into relay will decrease coverage by 0.32%.
The diff coverage is 66.66%.

@@            Coverage Diff             @@
##            relay    #1164      +/-   ##
==========================================
- Coverage   74.57%   74.25%   -0.33%
==========================================
  Files         102      102
  Lines        6959     6835     -124
==========================================
- Hits         5190     5075     -115
+ Misses       1415     1409       -6
+ Partials      354      351       -3

Impacted Files
Coverage Δ

transformers/senml/transformer.go
81.81% <0.00%> (-0.80%)
:arrow_down:

http/api/transport.go
74.07% <100.00%> (+1.45%)
:arrow_up:

twins/service.go
42.51% <100.00%> (+0.13%)
:arrow_up:

users/service.go
86.20% <0.00%> (-7.60%)
:arrow_down:

users/api/responses.go
75.00% <0.00%> (-5.00%)
:arrow_down:

users/users.go
80.48% <0.00%> (-4.52%)
:arrow_down:

users/postgres/init.go
85.71% <0.00%> (-3.18%)
:arrow_down:

users/api/endpoint.go
82.08% <0.00%> (-0.63%)
:arrow_down:

users/postgres/users.go
51.47% <0.00%> (-0.53%)
:arrow_down:

... and 2 more

Continue to review full report at Codecov.

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


Added responsive_web_design course

An open-source certification course from FreecodeCamp.
Covers:

Basic HTML and HTML5
Basic CSS
Applied Visual Design
Applied Accessibility
Responsive Web Design Principles
CSS Flexbox
CSS Grid
and 5 projects to be eligible for the certificate

link : www.freecodecamp.org/learn/responsive-web-design/

Hey, I also added DSA playlist by Kunal Kushwaha. I have been following his work since quite a long time, and I just love his teaching style. The playlist has helped me a lot and hope other students who like me prefer to learn in public find it usefu; too.
link: https://youtube.com/playlist?list=PL9gnSGHSqcnr_DxHsP7AW9ftq0AtAyYqJ
Sorry that I forgot to switch branches before commiting DSA playlist resource and now both the resources are in the same pull request. I understand this is not a good practice but I am just getting hang of github and contributing to open source. I can still submit 2 different pull requests if you want.


Update to run tests concurrently

Hi @nak3, thanks for the contrib. This is exactly what we need.
Just one more thing, what do we think about using os.TempDir and filepath.Join to make it platform-independent?
For example:
import (
	"os"
	"fmt"
	"time"
	"path/filepath"
)

testDB := fmt.Sprintf(filepath.Join(os.TempDir(), "ding-testdb-%s"), fmt.Sprintf(time.Now().Format("20060102T150405.000")))

@dinever That's smarter. Thank you for your advice! I updated.

Thanks @nak3!


accepting other known assets

Hi, am Christian From Zegital Development firm in Nigeria.
i just embarked on the journey of implementing and using Stellar for my clients apps
and i really need ur help in answering this one question.
Can my clients buy and store stable coins like usdt or usdc in there wallet? can they also have other assets like bitcoin and etherum? if yes please how to i go about this
i have started the development process already for the app, and also integrated Stellar sdk, i just need this questions aswered and directions, thanks

Hi @yawebs,
thank you for your message. The stellar flutter sdk supports only assest based on the stellar network. Using the sdk you can provide functionality in your wallet that allows your users to trust such assets. You can also provide functionality to trade trusted assets by managing buy and sell offers.
Hope this answer helps you. For more information on assets based on the stellar network please read the docs provided by stellar.org.
Kind regards
Christian


Convert workspace element and spec to JavaScript

Again, broken up for review; feel free to squash when merging.

OMG huge one.

📈  ❗


Verify that "Budaiesti" is listed in the drop-down menu with diacritics

Description:
When the user types "Budaiesti", the location appears written with diacritics in the drop-down menu next to the commune and county it belongs to.
Precondition:
The website is up an running.

Step 1
Write in the search bar "Budaiesti"

Expected results
The location appears in search bar as "Budaiesti" and in the drop-down menu appears with diacritics as "Budăiești, Alba (Albac)"


Allow customizing weekday and month names

Thank you for creating this great library.
It would be nice if the library allows customizing the names of weekdays and months through passing the corresponding String arrays.

This can definitely be a useful set of features! Here how I propose this gets implemented:
For weekday labels, we can have something like:
calendarView.setWeekDayLabels(new String[] { "S", "M", ...etc... });

and we could add an XML attribute for this too: app:weekDayLabels="@array/custom_labels"
For months, we should implement something more abstract than just setting an array. Since would be used to generate a title for the calendar, we should implement something like:
calendarView.setTitleFormatter(new Formatter() {
    public CharSequence format(CalendarDay date) {
        ...
    }
});

This would allow for a variety of formatting. We could include several "default" implementations like 'SimpleFormatter' that uses the current SimpleDateFormat and a 'CustomMonthFormatter' that could take an array of month labels. That one could also correspond to a new XML attribute app:monthLabels="@array/custom_months"
@4KHD, does this fit with what you want?
Does anyone have any feedback?


Revise new primitives

Both, SqueakObjectNewNode and the PrimNewNodes cache the receiverClass in some cases:
https://github.com/hpi-swa/trufflesqueak/blob/a0f1de39da15d304958b89b326b8dad177344e44/src/de.hpi.swa.trufflesqueak/src/de/hpi/swa/trufflesqueak/nodes/accessing/SqueakObjectNewNode.java#L74-L87
https://github.com/hpi-swa/trufflesqueak/blob/a0f1de39da15d304958b89b326b8dad177344e44/src/de.hpi.swa.trufflesqueak/src/de/hpi/swa/trufflesqueak/nodes/primitives/impl/StoragePrimitives.java#L182-L253
It may make sense to revise this to avoid cache duplication.

If you don't mind the hacky bits, this is how TruffleSOM integrates your #basicNew into a dispatch chain: https://github.com/SOM-st/TruffleSOM/pull/56/commits/d2f04f3bf3de79fb13176d6566cf331577a4f8bc
Specifically this for the standard dispatch, similar for super:
https://github.com/SOM-st/TruffleSOM/pull/56/commits/d2f04f3bf3de79fb13176d6566cf331577a4f8bc#diff-e6ba7b4ffc50689737a20f2121025ae11325e28b29cdf1c21f395c58d2522cc1R53-R69


Remove widget remains on parent

Versions

Python: 3.7.2
OS: Arch Linux x64
Kivy: 1.11.1
Kivy installation method: pip install kivy into virtualenv

Description
Create a parent, on right mouse click adding child, on middle mouse click on child - remove it from parent.
Expected: child disappeared from parent and from children collection.
Actual: child disappeared from children collection but remains visible and fronzen on parent.
Code and Logs
from kivy.app import App
from kivy.uix.widget import Widget
from kivy.config import Config
from kivy.lang import Builder
from kivy.uix.behaviors import DragBehavior
from kivy.uix.relativelayout import RelativeLayout

Config.set('input', 'mouse', 'mouse,disable_multitouch')

Builder.load_string(f'''
<Node@RelativeLayout>:
    drag_rectangle: self.x, self.y, self.width, self.height
    drag_timeout: 10000000
    drag_distance: 10

    canvas.before:
        Color:
            rgba: self.bcolor
        RoundedRectangle:
            pos: 0, 0
            size: self.size
            radius: [10,]
''')

class Node(DragBehavior, RelativeLayout):
    def __init__(self, **kwargs):
        self.bcolor = (0, 0, 1, 1)
        super(Node, self).__init__(size=(100, 100), **kwargs)

    def placement_pos(self, x, y):
        return (x - self.node_width() / 2, y - self.node_height() / 2)

Builder.load_string(f'''
<GrapherUI@Widget>:
    canvas.before:
        Color:
            rgba: {.5, 1, .5, 1}
        Rectangle:
            pos: self.pos
            size: self.size
''')

class GrapherUI(Widget):
    def __init__(self, graph=None, **kwargs):
        super(GrapherUI, self).__init__(**kwargs)

    def on_touch_down(self, touch):
        touched_children = [x for x in self.walk(restrict=True) if x is not self and x.collide_point(*touch.pos)]

        has_touched_children = any(touched_children)

        if touch.button == 'right':
            if not has_touched_children:
                self.add_node(touch)
        elif touch.button == 'middle':
            self.remove_node(touched_children, touch)

        super(GrapherUI, self).on_touch_down(touch)

    def add_node(self, touch):
        print('add node')
        with self.canvas:
            node = Node(pos=(touch.x, touch.y))
            self.add_widget(node)

    def remove_node(self, touched_children, touch):
        for node in touched_children:
            print('remove node')
            self.remove_widget(node)

class Main(App):
    def build(self):
        return GrapherUI()

if __name__ == '__main__':
    Main().run()

@matham could you explain why did you marked it as support request? According to documentation this case should work but it doesn't that clearly shows a bug. If you need additional logs - let me know. I believe it is bug in current version of Kivy.

The main reason is that your example code is complex enough so that it is not a minimum runnable example showing that it is a bug in kivy, but rather likely it is an issue in the way you use it.
And I'm fairly confident that the add/remove widget in kivy is working appropriately as that is probably the single most used function in kivy. So this suggests that it's likely a bug in your code, and hence you're much more likely to get help on the channels listed where there are people likely willing to look at your code and help debug it.
If after people looking at it you/they can pinpoint the exact bug in kivy, then you can open a issue here with the smallest code showing the bug.
If I were to leave it open here, it would probably be a long while before anyone looks at this issue and that won't be very helpful to you.


master branch build broken - marlin/blake2

Master branch won't build because marlin submodule won't build.  This is because we depend on an old version of the blake2 library (version 0.7) that has now been removed from the crate registry due to security issues.
We need to update marlin to use a newer version (i.e. 0.9.1 is latest).

Also marlin repo has been renamed to proof-systems, so we will need to update that.

Related to https://github.com/o1-labs/proof-systems/issues/133


sync: bad placement of multiple contested locks can cause drastic slowdown

This program runs in a couple of seconds in the normal case.  When invoked with the argument -offset=251, it takes over four minutes.  The problem is the hash table in runtime/sema.go.  When two contested mutexes happen to wind up using the same hash table entry, the linear search in semrelease is a significant performance drag.  While this is not a likely occurrence, 1 in 251 is not so terribly unlikely either, and the performance effect is extreme.  This actually occurred in an internal Google program.
CC @dvyukov
package main

import (
    "flag"
    "sync"
)

var offset = flag.Int("offset", 1, "Offset for the second lock")

func main() {
    flag.Parse()
    locks := make([]sync.RWMutex, *offset+1)
    ch := make(chan struct{})

    var wg sync.WaitGroup

    for i := 0; i < 10000; i++ {
	    wg.Add(1)
	    go func() {
		    <-ch
		    for i := 0; i < 10; i++ {
			    locks[0].Lock()
			    locks[*offset].Lock()
			    locks[*offset].Unlock()
			    locks[0].Unlock()
		    }
		    wg.Done()
	    }()
    }

    for i := 0; i < 100; i++ {
	    go func() {
		    for {
			    locks[*offset].Lock()
			    locks[*offset].Unlock()
		    }
	    }()
    }

    close(ch)
    wg.Wait()
}

This is not specific to RWMutex, right? Mutex should be affected the same way. If RWMutex is used only for write locks it behaves exactly as Mutex.
It's solvable if we increase size of the Mutex by at least 1 word to store *semaRoot directly. Maybe we could even pack all state into 2 words without indirection.
Solving it without Mutex size increase will require playing dirty games like packing pointers into integers (which should work provided that pointee is non-movable and is preserved alive by other pointers, which is true for e.g. G).

As far as I can see it would be OK to grow Mutex by a word.  It seems unlikely that any program's memory usage is dominated by the number of Mutex values it creates.

I'd really prefer not to store internal runtime state (pointers) in a user-corruptible data structure. We've seen malloc implementations have to move their metadata into separate pages to make sure that user corruption doesn't cause what look like internal errors in malloc, and I think that lesson applies here.
I have a different, simpler idea. Instead of making the 251-entry hash table have a list of all goroutines blocked on addresses hashing to that bucket, make it have a list of only goroutines blocked on unique addresses hashing to that bucket. Instead of inserting an address into the list a second time, a secondary list can hang off of each of these unique representatives. Because the wakeups are FIFO, the length of those secondary lists don't matter - the ops on them are O(1) - and moving the large numbers of goroutines blocked on the same lock off the main list eliminates that as a cause for slowdown if there's another lock hitting the same hash bucket.
I've implemented this, and it eliminates the problem in @ianlancetaylor's test program. Ian, if you can send me more details about the Google problem off-list then I'll see if it would fix that too.


Unable to run / find / build Powershell Module

Good morning i have been struggling with trying to get the powershell module working for the last day or so.
If i follow the instructions from https://www.youtube.com/watch?v=60w-yPDSQD0 i am able to clone the open-xml-sdk and open-xml-powertools no issues to my powershell\modules folder. Compile the sdk no issues but on checking the powertools folder there is no powershell module. Checking the branch i noticed that the branch is vNext and it seems that the powershell modules are not in that branch.
So then change the open-xml-powertools to master and now i have the module. (Execution policy is set to remote signed)
Import-module open-xml-powertools gives a whole screen of red where the basics are that the paths are incorrect. Example below
Add-Type : Cannot bind parameter 'Path' to the target. Exception setting "Path": "Cannot find path
'C:\Users\Davey\Documents\Open-Xml-Sdk\DocumentFormat.OpenXml\bin\debug\DocumentFormat.OpenXml.dll' because it does
not exist."
At C:\Users\Davey\Documents\WindowsPowerShell\Modules\open-xml-powertools\AddTypes.ps1:68 char:16

... -Type -Path "$PSScriptRoot......\Open-Xml-Sdk\DocumentFormat.OpenX ...

            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

CategoryInfo          : WriteError: (:) [Add-Type], ParameterBindingException
FullyQualifiedErrorId : ParameterBindingFailed,Microsoft.PowerShell.Commands.AddTypeCommand

Next i tried to compile the master branch of open-xml-powertools thinking that if i ignored the documentation that said just import the module and instead try to build it i got a whole bunch of errors like this.
Severity	Code	Description	Project	File	Line	Suppression State
Error	CS0246	The type or namespace name 'DocumentFormat' could not be found (are you missing a using directive or an assembly reference?)	OpenXmlPowerTools	C:\Users\Davey\Documents\WindowsPowerShell\Modules\Open-Xml-PowerTools\OpenXmlPowerTools\ChartUpdater.cs	7	Active
So is it that the master branch needs to have something updated or am i missing a step for the vNext.
Thanks

i have the same problem.

Closing all issues as this repo is being archived and will no longer be maintained by Microsoft. The project is licensed for continued use and development by forking to your own repo.


Interaction Events

Section 12.3 of the paper defines the contents of interaction events, which is stubbed in src/event/event_data/interaction. Interaction events contain only 'Seals', which are cryptographic commitments to data.

closed by #24 and #25


Appdirs import

Started working to resolve #76
import appdirs, create variable "dirs", specify path with dirs.user_config_dir.

Just realized that pip install appdirs needs to be added to README.

Now update readme


Do not inline sourcemaps in jake - source-map-support can't handle it

Internally, source-map-support (which we enable during tests/debugging for sourcemapped stack traces, and recently started inspecting during tests when we stopped using a noop logger for them) uses a regexp to find the source mapping url - except with inline sources and inline source maps, we have a 25MB file it operates over. With a backtracking regexp, this sometimes triggers this v8 behavior (if the heap is in heavy use - like when we're deep inside our test suite in a single process). This was causing tests to fail on our internal CI server. Best I can tell, this doesn't happen on travis because the memory pressure is different (specifically, travis is already on node 8.3, while both myself and the CI server (the only machines which repo'd this issue) were on node 8.1.2 - best I can tell, 8.1.3 apparently reduced the memory usage of the profiler API by instantiating fewer regexes in the node profiler polyfill).
The fix is to just not use 15MB of inline sourcemaps. In the Jakefile, we were doing this to enable sourcemaps to work with runtests-browser - but we've had this working for awhile without using inline sources in our implementation in the Gulpfile. So now the Jakefile no longer builds tests with inline sourcemaps and shells out to gulp to build tests for the browser.
If you're using jake, you should not notice much of a difference in your workflow.

Does it blow up inside external code, or inside typescript?
If it's typescript, it would mean a bug — similar errors might show up in other use cases. For example, we're routinely inlining sources, not even sourcemaps in many of our apps. Hopefully typescript won't start to break on that?

@mihailik The error is in a package we use to enable source mapped stack
traces, not us. Were it in us, we'd probably just edit the RegExp/loop to
not crash on 25MB files, like what was done for convert-source-maps
awhile back.
On Fri, Aug 11, 2017, 3:50 AM mihailik<EMAIL_ADDRESS>wrote:

Does it blow up inside external code, or inside typescript?
If it's typescript, it would mean a bug — similar errors might show up in
other use cases. For example, we're routinely inlining sources, not
even sourcemaps in many of our apps. Hopefully typescript won't start to
break on that?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/Microsoft/TypeScript/pull/17732#issuecomment-321782556,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACzAMhLhBTZ_62fzE_Hj_pqpe0Zex9Wlks5sXDH-gaJpZM4Oz-XC
.


Add layout UI helper documentation

This PR represents @Wilto's work implementing a documentation page for the ui-layout helpers, and also contains some overall docs improvements such as indicating the active class in the navigation (not yet styled).
Run the docs server at localhost:4000 with the command grunt docs.
This PR

Merges in layout utility class documentation
Properly documents all development tasks and commands in the README
Synchronizes the information in the README with the public-facing docs site content, including replacing outdated material from the prior version of this repository
Fleshes out the demos in the ui-helpers page with descriptive copy

Gave everything a read. I'm not good at copy editing but from the tech side it looks good.

:shipit:

🚀


Add missing EN translation entries

@taisbellini @leandrohmanica please also check if there's any typo in pt-BR.yml


Fix unexpected alter table in auto migration

[] Do only one thing
[] Non breaking API changes
[] Tested

What did this pull request do?

Fix #5942
User Case Description

Hi @defool
Can you add some tests?

Fixed in commit https://github.com/go-gorm/gorm/commit/3d91802b1d1bd5ad175ac43fac062fd9f8de98be


terraform_plan: Skip when no resource_changes key is found

When resource_changes key is not found in the input data (terraform json), the check must be skipped.

Already merged in 33aa02159053a096dc9efd328b30d80566accb48


MSBuild failing with error MSB4041 on windows-2019 image versions 20210309.0 and 20210316.1

Description
Builds have started failing on a windows-2019 image versions 20210309.0 (#2895) and 20210316.1 (#2948) resulting in error MSB4041 when the MSBuild task on an ASP.NET web site project using .NET Framework 4.7.2 is run.
The error is: System.NotSupportedException: The given path's format is not supported.
The rest of my projects build just fine, it’s isolated to this type of project.
This problem started last Wednesday (2021-03-10) but re-running the build seemed to fix the issue. It happened again on Friday (2021-03-12) but it required 3 runs to get the build to succeed. As of Monday (2021-03-15) it seems that builds fail no matter how many times we re-run them.
When the build succeeded, it was using image version 20210219.1 (#2768) or older. I assume not all images in the pool had been updated at that point.
No changes have been made to the build pipeline or the referenced task groups within the build pipeline in many months. No changes have been made to the VS solutions or projects either.
Microsoft, I can provide extra logs and my exported build definition if you need me to.
This issue seems to also been reported here:
https://developercommunity.visualstudio.com/t/starting-today-we-can-no-longer-build-any-vbnet-c/1370287
2021-03-17T19:16:07.4579040Z ##[section]Starting: Development Job
2021-03-17T19:16:07.6125147Z ##[section]Starting: Initialize job
2021-03-17T19:16:07.6126625Z Agent name: 'Hosted Agent'
2021-03-17T19:16:07.6126963Z Agent machine name: 'fv-az49-168'
2021-03-17T19:16:07.6127184Z Current agent version: '2.183.1'
2021-03-17T19:16:07.6277889Z ##[group]Operating System
2021-03-17T19:16:07.6278126Z Microsoft Windows Server 2019
2021-03-17T19:16:07.6278303Z 10.0.17763
2021-03-17T19:16:07.6278433Z Datacenter
2021-03-17T19:16:07.6278570Z ##[endgroup]
2021-03-17T19:16:07.6278727Z ##[group]Virtual Environment
2021-03-17T19:16:07.6278932Z Environment: windows-2019
2021-03-17T19:16:07.6279105Z Version: 20210316.1
2021-03-17T19:16:07.6279408Z Included Software: https://github.com/actions/virtual-environments/blob/win19/20210316.1/images/win/Windows2019-Readme.md
2021-03-17T19:16:07.6279819Z Image Release: https://github.com/actions/virtual-environments/releases/tag/win19%2F20210316.1
2021-03-17T19:16:07.6280090Z ##[endgroup]
2021-03-17T19:16:07.6281434Z Current image version: '20210316.1'
2021-03-17T19:16:07.6289393Z Agent running as: 'VssAdministrator'
2021-03-17T19:16:07.6333735Z Prepare build directory.
2021-03-17T19:16:07.6619324Z Set build variables.
2021-03-17T19:16:07.6654177Z Download all required tasks.
2021-03-17T19:16:07.6785677Z Downloading task: PowerShell (2.180.1)
2021-03-17T19:16:09.5279176Z Downloading task: GitDownloader (0.4.7)
2021-03-17T19:16:09.6057699Z Downloading task: NuGetCommand (2.179.0)
2021-03-17T19:16:13.1124387Z Downloading task: CmdLine (2.182.0)
2021-03-17T19:16:13.5136388Z Downloading task: FileTransform (1.182.0)
2021-03-17T19:16:14.8908195Z Downloading task: VSBuild (1.183.0)
2021-03-17T19:16:15.0728629Z Downloading task: PublishPipelineArtifact (1.2.3)
2021-03-17T19:16:15.1397704Z Checking job knob settings.
2021-03-17T19:16:15.1407602Z    Knob: AgentToolsDirectory = C:\hostedtoolcache\windows Source: ${AGENT_TOOLSDIRECTORY}
2021-03-17T19:16:15.1408992Z    Knob: AgentPerflog = c:\vsts\perflog Source: ${VSTS_AGENT_PERFLOG}
2021-03-17T19:16:15.1410172Z Finished checking job knob settings.
2021-03-17T19:16:15.1885312Z Start tracking orphan processes.
2021-03-17T19:16:15.1950891Z ##[section]Finishing: Initialize job

2021-03-17T19:19:18.6627586Z ##[section]Starting: Build AttorneyPortal
2021-03-17T19:19:18.6761810Z ==============================================================================
2021-03-17T19:19:18.6762121Z Task         : Visual Studio build
2021-03-17T19:19:18.6762418Z Description  : Build with MSBuild and set the Visual Studio version property
2021-03-17T19:19:18.6762682Z Version      : 1.183.0
2021-03-17T19:19:18.6762887Z Author       : Microsoft Corporation
2021-03-17T19:19:18.6763215Z Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/build/visual-studio-build
2021-03-17T19:19:18.6763568Z ==============================================================================
2021-03-17T19:19:19.7577582Z ##[command]"D:\a\_tasks\VSBuild_71a9a2d3-a98a-4caa-96ab-affca411ecda\1.183.0\ps_modules\MSBuildHelpers\vswhere.exe" -version [16.0,17.0) -latest -format json
2021-03-17T19:19:20.8858607Z ##[command]"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\amd64\msbuild.exe" "D:\a\1\s\Sources\AttorneyPortal.sln" /nologo /nr:false /dl:CentralLogger,"D:\a\_tasks\VSBuild_71a9a2d3-a98a-4caa-96ab-affca411ecda\1.183.0\ps_modules\MSBuildHelpers\Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll";"RootDetailId=e672e71d-1304-40a3-9332-ab33f60662dc|SolutionDir=D:\a\1\s\Sources"*ForwardingLogger,"D:\a\_tasks\VSBuild_71a9a2d3-a98a-4caa-96ab-affca411ecda\1.183.0\ps_modules\MSBuildHelpers\Microsoft.TeamFoundation.DistributedTask.MSBuild.Logger.dll"  /p:platform="Any CPU" /p:configuration="debug" /p:VisualStudioVersion="16.0" /m /p:_MSDeployUserAgent="VSTS_5795f566-bfe6-4344-80ac-51a53af3400b_build_62_0"
2021-03-17T19:19:26.0851296Z Build started 3/17/2021 7:19:26 PM.
2021-03-17T19:19:27.1719660Z ##[error]Sources\AttorneyPortal.sln(0,0): Error MSB4014: The build stopped unexpectedly because of an internal failure.
System.NotSupportedException: The given path's format is not supported.
   at System.Security.Permissions.FileIOPermission.EmulateFileIOPermissionChecks(String fullPath)
   at System.Security.Permissions.FileIOPermission.QuickDemand(FileIOPermissionAccess access, String fullPath, Boolean checkForDuplicates, Boolean needFullPath)
   at Microsoft.Build.Construction.ProjectInSolution.get_AbsolutePath()
   at Microsoft.Build.Construction.SolutionProjectGenerator.AddPropertyGroupForSolutionConfiguration(ProjectRootElement msbuildProject, SolutionFile solutionFile, SolutionConfigurationInSolution solutionConfiguration)
   at Microsoft.Build.Construction.SolutionProjectGenerator.CreateTraversalInstance(String wrapperProjectToolsVersion, Boolean explicitToolsVersionSpecified, List`1 projectsInOrder)
   at Microsoft.Build.Construction.SolutionProjectGenerator.CreateSolutionProject(String wrapperProjectToolsVersion, Boolean explicitToolsVersionSpecified)
   at Microsoft.Build.Construction.SolutionProjectGenerator.Generate()
   at Microsoft.Build.Execution.ProjectInstance.GenerateSolutionWrapper(String projectFile, IDictionary`2 globalProperties, String toolsVersion, ILoggingService loggingService, BuildEventContext projectBuildEventContext, IReadOnlyCollection`1 targetNames, ISdkResolverService sdkResolverService, Int32 submissionId)
   at Microsoft.Build.Execution.ProjectInstance.LoadSolutionForBuild(String projectFile, PropertyDictionary`1 globalPropertiesInstances, String toolsVersion, BuildParameters buildParameters, ILoggingService loggingService, BuildEventContext projectBuildEventContext, Boolean isExplicitlyLoaded, IReadOnlyCollection`1 targetNames, ISdkResolverService sdkResolverService, Int32 submissionId)
   at Microsoft.Build.Execution.BuildManager.LoadSolutionIntoConfiguration(BuildRequestConfiguration config, BuildRequest request)
   at Microsoft.Build.Execution.BuildManager.HandleNewRequest(Int32 node, BuildRequestBlocker blocker)
   at Microsoft.Build.Execution.BuildManager.IssueBuildSubmissionToScheduler(BuildSubmission submission, Boolean allowMainThreadBuild)
2021-03-17T19:19:27.1812697Z      0>D:\a\1\s\Sources\AttorneyPortal.sln : error MSB4014: The build stopped unexpectedly because of an internal failure.
2021-03-17T19:19:27.1815138Z D:\a\1\s\Sources\AttorneyPortal.sln : error MSB4014: System.NotSupportedException: The given path's format is not supported.
2021-03-17T19:19:27.1816197Z D:\a\1\s\Sources\AttorneyPortal.sln : error MSB4014:    at System.Security.Permissions.FileIOPermission.EmulateFileIOPermissionChecks(String fullPath)
2021-03-17T19:19:27.1817484Z D:\a\1\s\Sources\AttorneyPortal.sln : error MSB4014:    at System.Security.Permissions.FileIOPermission.QuickDemand(FileIOPermissionAccess access, String fullPath, Boolean checkForDuplicates, Boolean needFullPath)
2021-03-17T19:19:27.1818425Z D:\a\1\s\Sources\AttorneyPortal.sln : error MSB4014:    at Microsoft.Build.Construction.ProjectInSolution.get_AbsolutePath()
2021-03-17T19:19:27.1819585Z D:\a\1\s\Sources\AttorneyPortal.sln : error MSB4014:    at Microsoft.Build.Construction.SolutionProjectGenerator.AddPropertyGroupForSolutionConfiguration(ProjectRootElement msbuildProject, SolutionFile solutionFile, SolutionConfigurationInSolution solutionConfiguration)
2021-03-17T19:19:27.1821862Z D:\a\1\s\Sources\AttorneyPortal.sln : error MSB4014:    at Microsoft.Build.Construction.SolutionProjectGenerator.CreateTraversalInstance(String wrapperProjectToolsVersion, Boolean explicitToolsVersionSpecified, List`1 projectsInOrder)
2021-03-17T19:19:27.1822857Z D:\a\1\s\Sources\AttorneyPortal.sln : error MSB4014:    at Microsoft.Build.Construction.SolutionProjectGenerator.CreateSolutionProject(String wrapperProjectToolsVersion, Boolean explicitToolsVersionSpecified)
2021-03-17T19:19:27.1829553Z D:\a\1\s\Sources\AttorneyPortal.sln : error MSB4014:    at Microsoft.Build.Construction.SolutionProjectGenerator.Generate()
2021-03-17T19:19:27.1830868Z D:\a\1\s\Sources\AttorneyPortal.sln : error MSB4014:    at Microsoft.Build.Execution.ProjectInstance.GenerateSolutionWrapper(String projectFile, IDictionary`2 globalProperties, String toolsVersion, ILoggingService loggingService, BuildEventContext projectBuildEventContext, IReadOnlyCollection`1 targetNames, ISdkResolverService sdkResolverService, Int32 submissionId)
2021-03-17T19:19:27.1832545Z D:\a\1\s\Sources\AttorneyPortal.sln : error MSB4014:    at Microsoft.Build.Execution.ProjectInstance.LoadSolutionForBuild(String projectFile, PropertyDictionary`1 globalPropertiesInstances, String toolsVersion, BuildParameters buildParameters, ILoggingService loggingService, BuildEventContext projectBuildEventContext, Boolean isExplicitlyLoaded, IReadOnlyCollection`1 targetNames, ISdkResolverService sdkResolverService, Int32 submissionId)
2021-03-17T19:19:27.1833697Z D:\a\1\s\Sources\AttorneyPortal.sln : error MSB4014:    at Microsoft.Build.Execution.BuildManager.LoadSolutionIntoConfiguration(BuildRequestConfiguration config, BuildRequest request)
2021-03-17T19:19:27.1834374Z D:\a\1\s\Sources\AttorneyPortal.sln : error MSB4014:    at Microsoft.Build.Execution.BuildManager.HandleNewRequest(Int32 node, BuildRequestBlocker blocker)
2021-03-17T19:19:27.1835172Z D:\a\1\s\Sources\AttorneyPortal.sln : error MSB4014:    at Microsoft.Build.Execution.BuildManager.IssueBuildSubmissionToScheduler(BuildSubmission submission, Boolean allowMainThreadBuild)
2021-03-17T19:19:27.2031585Z
2021-03-17T19:19:27.2033439Z Build FAILED.
2021-03-17T19:19:27.2460916Z
2021-03-17T19:19:27.2480405Z          D:\a\1\s\Sources\AttorneyPortal.sln : error MSB4014: The build stopped unexpectedly because of an internal failure.
2021-03-17T19:19:27.2481501Z        D:\a\1\s\Sources\AttorneyPortal.sln : error MSB4014: System.NotSupportedException: The given path's format is not supported.
2021-03-17T19:19:27.2482478Z        D:\a\1\s\Sources\AttorneyPortal.sln : error MSB4014:    at System.Security.Permissions.FileIOPermission.EmulateFileIOPermissionChecks(String fullPath)
2021-03-17T19:19:27.2483425Z        D:\a\1\s\Sources\AttorneyPortal.sln : error MSB4014:    at System.Security.Permissions.FileIOPermission.QuickDemand(FileIOPermissionAccess access, String fullPath, Boolean checkForDuplicates, Boolean needFullPath)
2021-03-17T19:19:27.2485307Z        D:\a\1\s\Sources\AttorneyPortal.sln : error MSB4014:    at Microsoft.Build.Construction.ProjectInSolution.get_AbsolutePath()
2021-03-17T19:19:27.2486229Z        D:\a\1\s\Sources\AttorneyPortal.sln : error MSB4014:    at Microsoft.Build.Construction.SolutionProjectGenerator.AddPropertyGroupForSolutionConfiguration(ProjectRootElement msbuildProject, SolutionFile solutionFile, SolutionConfigurationInSolution solutionConfiguration)
2021-03-17T19:19:27.2487224Z        D:\a\1\s\Sources\AttorneyPortal.sln : error MSB4014:    at Microsoft.Build.Construction.SolutionProjectGenerator.CreateTraversalInstance(String wrapperProjectToolsVersion, Boolean explicitToolsVersionSpecified, List`1 projectsInOrder)
2021-03-17T19:19:27.2488747Z        D:\a\1\s\Sources\AttorneyPortal.sln : error MSB4014:    at Microsoft.Build.Construction.SolutionProjectGenerator.CreateSolutionProject(String wrapperProjectToolsVersion, Boolean explicitToolsVersionSpecified)
2021-03-17T19:19:27.2490059Z        D:\a\1\s\Sources\AttorneyPortal.sln : error MSB4014:    at Microsoft.Build.Construction.SolutionProjectGenerator.Generate()
2021-03-17T19:19:27.2491145Z        D:\a\1\s\Sources\AttorneyPortal.sln : error MSB4014:    at Microsoft.Build.Execution.ProjectInstance.GenerateSolutionWrapper(String projectFile, IDictionary`2 globalProperties, String toolsVersion, ILoggingService loggingService, BuildEventContext projectBuildEventContext, IReadOnlyCollection`1 targetNames, ISdkResolverService sdkResolverService, Int32 submissionId)
2021-03-17T19:19:27.2492650Z        D:\a\1\s\Sources\AttorneyPortal.sln : error MSB4014:    at Microsoft.Build.Execution.ProjectInstance.LoadSolutionForBuild(String projectFile, PropertyDictionary`1 globalPropertiesInstances, String toolsVersion, BuildParameters buildParameters, ILoggingService loggingService, BuildEventContext projectBuildEventContext, Boolean isExplicitlyLoaded, IReadOnlyCollection`1 targetNames, ISdkResolverService sdkResolverService, Int32 submissionId)
2021-03-17T19:19:27.2494011Z        D:\a\1\s\Sources\AttorneyPortal.sln : error MSB4014:    at Microsoft.Build.Execution.BuildManager.LoadSolutionIntoConfiguration(BuildRequestConfiguration config, BuildRequest request)
2021-03-17T19:19:27.2494776Z        D:\a\1\s\Sources\AttorneyPortal.sln : error MSB4014:    at Microsoft.Build.Execution.BuildManager.HandleNewRequest(Int32 node, BuildRequestBlocker blocker)
2021-03-17T19:19:27.2495557Z        D:\a\1\s\Sources\AttorneyPortal.sln : error MSB4014:    at Microsoft.Build.Execution.BuildManager.IssueBuildSubmissionToScheduler(BuildSubmission submission, Boolean allowMainThreadBuild)
2021-03-17T19:19:27.2495946Z
2021-03-17T19:19:27.2496187Z     0 Warning(s)
2021-03-17T19:19:27.2496480Z     1 Error(s)
2021-03-17T19:19:27.2496736Z
2021-03-17T19:19:27.2496987Z Time Elapsed 00:00:01.16
2021-03-17T19:19:27.2497490Z MSBUILD : error MSB1025: An internal failure occurred while running MSBuild.
2021-03-17T19:19:27.2498477Z System.NotSupportedException: The given path's format is not supported.
2021-03-17T19:19:27.2499259Z    at System.Security.Permissions.FileIOPermission.EmulateFileIOPermissionChecks(String fullPath)
2021-03-17T19:19:27.2500224Z    at System.Security.Permissions.FileIOPermission.QuickDemand(FileIOPermissionAccess access, String fullPath, Boolean checkForDuplicates, Boolean needFullPath)
2021-03-17T19:19:27.2501353Z    at Microsoft.Build.Construction.ProjectInSolution.get_AbsolutePath()
2021-03-17T19:19:27.2502240Z    at Microsoft.Build.Construction.SolutionProjectGenerator.AddPropertyGroupForSolutionConfiguration(ProjectRootElement msbuildProject, SolutionFile solutionFile, SolutionConfigurationInSolution solutionConfiguration)
2021-03-17T19:19:27.2503437Z    at Microsoft.Build.Construction.SolutionProjectGenerator.CreateTraversalInstance(String wrapperProjectToolsVersion, Boolean explicitToolsVersionSpecified, List`1 projectsInOrder)
2021-03-17T19:19:27.2504538Z    at Microsoft.Build.Construction.SolutionProjectGenerator.CreateSolutionProject(String wrapperProjectToolsVersion, Boolean explicitToolsVersionSpecified)
2021-03-17T19:19:27.2505535Z    at Microsoft.Build.Construction.SolutionProjectGenerator.Generate()
2021-03-17T19:19:27.2506674Z    at Microsoft.Build.Execution.ProjectInstance.GenerateSolutionWrapper(String projectFile, IDictionary`2 globalProperties, String toolsVersion, ILoggingService loggingService, BuildEventContext projectBuildEventContext, IReadOnlyCollection`1 targetNames, ISdkResolverService sdkResolverService, Int32 submissionId)
2021-03-17T19:19:27.2508225Z    at Microsoft.Build.Execution.ProjectInstance.LoadSolutionForBuild(String projectFile, PropertyDictionary`1 globalPropertiesInstances, String toolsVersion, BuildParameters buildParameters, ILoggingService loggingService, BuildEventContext projectBuildEventContext, Boolean isExplicitlyLoaded, IReadOnlyCollection`1 targetNames, ISdkResolverService sdkResolverService, Int32 submissionId)
2021-03-17T19:19:27.2510366Z    at Microsoft.Build.Execution.BuildManager.LoadSolutionIntoConfiguration(BuildRequestConfiguration config, BuildRequest request)
2021-03-17T19:19:27.2511252Z    at Microsoft.Build.Execution.BuildManager.HandleNewRequest(Int32 node, BuildRequestBlocker blocker)
2021-03-17T19:19:27.2512070Z    at Microsoft.Build.Execution.BuildManager.IssueBuildSubmissionToScheduler(BuildSubmission submission, Boolean allowMainThreadBuild)
2021-03-17T19:19:27.2512555Z
2021-03-17T19:19:27.2519588Z MSBUILD : error MSB1025: An internal failure occurred while running MSBuild.
2021-03-17T19:19:27.2520214Z System.NotSupportedException: The given path's format is not supported.
2021-03-17T19:19:27.2521729Z    at Microsoft.Build.CommandLine.MSBuildApp.BuildProject(String projectFile, String[] targets, String toolsVersion, Dictionary`2 globalProperties, Dictionary`2 restoreProperties, ILogger[] loggers, LoggerVerbosity verbosity, DistributedLoggerRecord[] distributedLoggerRecords, Boolean needToValidateProject, String schemaFile, Int32 cpuCount, Boolean enableNodeReuse, TextWriter preprocessWriter, TextWriter targetsWriter, Boolean detailedSummary, ISet`1 warningsAsErrors, ISet`1 warningsAsMessages, Boolean enableRestore, ProfilerLogger profilerLogger, Boolean enableProfiler, Boolean interactive, Boolean isolateProjects, Boolean graphBuild, Boolean lowPriority, String[] inputResultsCaches, String outputResultsCache)
2021-03-17T19:19:27.2524047Z    at Microsoft.Build.CommandLine.MSBuildApp.Execute(String commandLine)
2021-03-17T19:19:27.3009755Z
2021-03-17T19:19:27.3013365Z Unhandled Exception: System.NotSupportedException: The given path's format is not supported.
2021-03-17T19:19:27.3015141Z    at Microsoft.Build.CommandLine.MSBuildApp.BuildProject(String projectFile, String[] targets, String toolsVersion, Dictionary`2 globalProperties, Dictionary`2 restoreProperties, ILogger[] loggers, LoggerVerbosity verbosity, DistributedLoggerRecord[] distributedLoggerRecords, Boolean needToValidateProject, String schemaFile, Int32 cpuCount, Boolean enableNodeReuse, TextWriter preprocessWriter, TextWriter targetsWriter, Boolean detailedSummary, ISet`1 warningsAsErrors, ISet`1 warningsAsMessages, Boolean enableRestore, ProfilerLogger profilerLogger, Boolean enableProfiler, Boolean interactive, Boolean isolateProjects, Boolean graphBuild, Boolean lowPriority, String[] inputResultsCaches, String outputResultsCache)
2021-03-17T19:19:27.3016793Z    at Microsoft.Build.CommandLine.MSBuildApp.Execute(String commandLine)
2021-03-17T19:19:27.3017912Z    at Microsoft.Build.CommandLine.MSBuildApp.Main()
2021-03-17T19:19:32.4535907Z ##[error]Process 'msbuild.exe' exited with code '-532462766'.
2021-03-17T19:19:32.4858920Z ##[section]Finishing: Build AttorneyPortal

Area for Triage:
investigate
Question, Bug, or Feature?:
Bug
Virtual environments affected

[ ] Ubuntu 16.04
[ ] Ubuntu 18.04
[ ] Ubuntu 20.04
[ ] macOS 10.15
[ ] macOS 11.0
[ ] Windows Server 2016 R2
[x] Windows Server 2019

Image version
20210309.0 and 20210316.1
Expected behavior
Successful build.
Actual behavior
Error MSB4041 as soon as the MSBuild build task for my web site project runs.

Looks like the issue has appeared after upgrading Visual Studio to 16.9. We will investigate it further.

@maxim-lobanov if you happen to find a temporary workaround let me know, our pull requests are unable to complete because they require a successful build

Hello everyone!
Just an update, we were working with VS team to identify the fix and it was merged recently via https://github.com/dotnet/msbuild/pull/6273. We are expecting the newer version of VS is released this week and we will take it on images as soon as it is available (considering 3 days deployment process duration 😢 )

@edgariscoding
To fix our pipeline we had to fall back to vs2017-win2016 with MSBUILD 15.0, and install some additional components (that are packed into the windows-2019 image, but not the win2016 one) :-(

Hello @maxim-lobanov ,
Can you confirm that the new version of VS will be released this week?
We're still stuck and dont wan't to have to do the same thing as @susanadomingos-falck .
Regards,

This whole situation is fuel on the campfire for the no-Azure advocates... 🙄🤦♀

@Phil-Be we don't know the exact date, but most likely — yes. Please pay attention that the new image deployment will start on Monday and it will take 3-4 days to propagate the image to all the environments

As long as we can at least use one of our agents.
The "likely" is still worrying, but no choice?
Thanks for update though

Hi Staff

Will this issue be solved in the new image?
Will that new image's deployment start today?

Thank you.

Hello everyone,
Unfortunately, the new version of VS with fix is not available yet: https://docs.microsoft.com/en-us/visualstudio/releases/2019/release-notes

Hi @maxim-lobanov , Any ETA for the issue. couple of hour pipelines is running into the issue and we are doing lot of manual builds

Same issue here, we’ve had to halt our deployments to production and we can’t even merge code into the main branches because the PR require a successful build before they can be completed.

Same here, an ETA would be appreciated.

Good news! The new version 16.9.3 has been released
https://docs.microsoft.com/en-us/visualstudio/releases/2019/release-notes#16.9.3
We're going to start new image deployment tomorrow and plan to finish on Monday the 5th

Ah arm64 that makes more sense.

@edgariscoding we have updated the image with visual studio 16.9.31129.286. Could you please check the behavior?

@miketimofeev  looks to be working! Thank you!

@edgariscoding I'm going to close the issue. Please feel free to contact us if you have any concerns.
Thank you!


[Issue 3009][docs] Add presto sql REST APIs doc

Fixes #3009
Motivation
There are no REST APIs usage docs for the presto SQL.

@sijie @Jennifer88huang Can you please take a look at the presto SQL REST APIs doc? Thanks! If you have any questions feel free to tell me.

run integration tests

run integration tests

@sijie PTAL. Thanks.

@Jennifer88huang @zymap please address the comments for this documentation change. this is blocking 2.5.0 release.

@zymap I've refined the structure and content. If there is any technical misunderstanding in the update, feel free to let me know.

run cpp tests
run integration tests


Support for variables in scenarios

Support for variables in scenarios (variable types: random/constant)
Better error logging and warnings
Added wait_for_element and sleep functions
Open url can accept an array now and it will pick one of the urls randomly
Added screenshot option to have easier debuging
Added support for comments in the scenario json (this requires the user to install commentjson (pip install commentjson)
Various fixes to make sure that the scenario will run correctly without failing

Can you update the 'Usage' part in README.md? Everything else looks good! Thx


rig add devel erroneously refers to R version 4.4-arm64

rig add devel on macOS Ventura 13.2.1 (ARM64) installs the latest R devel version, but terminates with an error referring to the not yet existing 4.4-arm64:
chrsigg@vega:nscancor $ rig -v add devel
[INFO] Running `sudo` for adding new R versions. This might need your password.
[DEBUG] (1) sudo: [/Users/gaborcsardi/.cargo/registry/src/github.com-1ecc6299db9ec823/sudo-0.6.0/src/lib.rs:99] Escalating privileges
[DEBUG] (1) reqwest::connect: [/Users/gaborcsardi/.cargo/registry/src/github.com-1ecc6299db9ec823/reqwest-0.11.10/src/connect.rs:560] starting new connection: https://svn.r-project.org/
[DEBUG] (1) reqwest::async_impl::client: [/Users/gaborcsardi/.cargo/registry/src/github.com-1ecc6299db9ec823/reqwest-0.11.10/src/async_impl/client.rs:1917] response '200 OK' for https://svn.r-project.org/R/trunk/VERSION
[INFO] arm64-R-devel-arm64.pkg is cached at /tmp/rig/arm64-R-devel-arm64.pkg
[DEBUG] (1) rig::utils: [src/utils.rs:90] Updating "/tmp/rig/OmmofCLApk/R-fw.pkg/R.framework/Versions/Current/Resources/bin/R"
[DEBUG] (1) rig::utils: [src/utils.rs:90] Updating "/tmp/rig/OmmofCLApk/R-fw.pkg/R.framework/Versions/Current/Resources/etc/Renviron"
[DEBUG] (1) rig::utils: [src/utils.rs:90] Updating "/tmp/rig/OmmofCLApk/R-fw.pkg/R.framework/Versions/Current/Resources/fontconfig/fonts/fonts.conf"
[DEBUG] (1) rig::utils: [src/utils.rs:90] Updating "/tmp/rig/OmmofCLApk/R-fw.pkg/R.framework/Versions/Current/Resources/etc/Makeconf"
[INFO] Running installer
[DEBUG] (1) rig::run: [src/run.rs:27] Running "arch" with args ["-arm64", "installer", "-pkg", "/tmp/rig/kHpCJJMYhJ.pkg", "-target", "/"]
[INFO] > installer: Package name is R 4.3.0 for macOS (ARM64)
[INFO] > installer: Installing at base path /
[INFO] > installer: The install was successful.
[INFO] Forgetting installed versions
[DEBUG] (1) rig::macos: [src/macos.rs:697] Calling pkgutil --forget org.R-project.arm64.R.GUI.pkg
[DEBUG] (1) rig::macos: [src/macos.rs:697] Calling pkgutil --forget org.r-project.arm64.tcltk
[DEBUG] (1) rig::macos: [src/macos.rs:697] Calling pkgutil --forget org.R-project.arm64.R.fw.pkg
[DEBUG] (1) rig::macos: [src/macos.rs:697] Calling pkgutil --forget org.r-project.arm64.texinfo
[DEBUG] (1) rig::macos: [src/macos.rs:340] Finding existing aliaes
[ERROR] R version 4.4-arm64 is not installed

Calling rig ls shows that 4.3-arm64 was installed
chrsigg@vega:nscancor $ rig ls
* name       version    aliases
------------------------------------------
  4.2-arm64  (R 4.2.3)
* 4.3-arm64  (R 4.3.0)

but starting R fails with ld again referring to 4.4-arm64
chrsigg@vega:nscancor $ R
/usr/local/bin/R: line 249: /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/etc/ldpaths: No such file or directory

However, manually installing the downloaded R devel package is successful
chrsigg@vega:nscancor $ open /tmp/rig/arm64-R-devel-arm64.pkg
chrsigg@vega:nscancor $ R

R Under development (unstable) (2023-03-23 r84026) -- "Unsuffered Consequences"
...

so I am assuming that the issue is related to rig, and not due to a broken R devel build.
chrsigg@vega:R.framework $ uname -a
Darwin vega.local 22.3.0 Darwin Kernel Version 22.3.0: Mon Jan 30 20:38:37 PST 2023; root:xnu-8792.81.3~2/RELEASE_ARM64_T6000 arm64
chrsigg@vega:R.framework $ rig -V
RIG -- The R Installation Manager 0.5.2

Yeah, R is switching to alpha, and versions are in a bit of a flux. I think this should work now.
But let's keep this issue open, because the rig's version number lookups are not optional.

The version resolution is much better now, thanks to the changes in https://github.com/r-hub/node-rversions and https://github.com/r-hub/rversions.app


Weirdness with specific youtube link

https://www.reddit.com/r/Simulated/comments/ahknnp/3d_advanced_neural_network_simulation_computer/
Here's a weird one. The youtube video fails to load, and when you hit the "open in youtube" button, it redirects you to youtube, which then opens chrome to the url 2gl. Back in Slide, the three-dot menu in the media player doesn't respond to touch events.
If you open the post menu:

"Open in safari" will pass the correct URL over to safari, instantly opening youtube (this is all good)
"Open in Chrome" will instantly crash the app
Both "share content" and "share reddit link" do nothing

If you open the menu that comes up when you long press the video:

"Open in chrome" crashes the app
"Copy URL" copies the correct URL
"Open Externally" properly opens the youtube app with the correct video

This is like a land mine of a URL: https://www.youtube.com/attribution_link?a=zIin679knJs&u=%2Fwatch%3Fv%3D2GYLpzZzqeg%26feature%3Dshare

We had some funky substring logic using arrays for some reason... Have fixed it!


HDF5 utility functions

Describe your changes
Added HDF5 utilities.
Note this is not a reader, it doesn't return a CIL object but allows you you browse the file structure for the necessary fields and read in datasets as numpy arrays.
Describe any testing you have performed
Please add any demo scripts to CIL-Demos/misc/
Used to browse files.
No unit tests as currently we don't have a way to mock inputs.
Link relevant issues
closes #1389
Checklist when you are ready to request a review

[x] I have performed a self-review of my code
[x] I have added docstrings in line with the guidance in the developer guide
[ ] I have implemented unit tests that cover any new or modified functionality
[x] CHANGELOG.md has been updated with any functionality change
[x] Request review from all relevant developers
[x] Change pull request label to 'Waiting for review'

Contribution Notes
Please read and adhere to the developer guide and local patterns and conventions.

[x] The content of this Pull Request (the Contribution) is intentionally submitted for inclusion in CIL (the Work) under the terms and conditions of the Apache-2.0 License.
[x] I confirm that the contribution does not violate any intellectual property rights of third parties

a way to mock is using mock, see https://github.com/vais-ral/CILViewer/search?q=mock

Let's not merge, we still need to update the docs!

Just waiting to check the documentation render

Fails on jenkins.


Sim: fix openpilot directory

openpilot directory was moved to not invalidate the cache and speedup builds: https://github.com/commaai/openpilot/pull/29639
need to move it here too. resolves: https://github.com/commaai/openpilot/issues/29751

Whats the solution then? I have the latest source code of openpilot and still getting the same message
/bin/bash: ./tmux_script.sh: No such file or directory

Whats the solution then? I have the latest source code of openpilot and still getting the same message /bin/bash: ./tmux_script.sh: No such file or directory

Excuse me, did you solve this problem? I met the same problem like this.


mix.exs: remove gettext compiler

This is not needed anymore, avoid compiler warning
Signed-off-by: Riccardo Binetti<EMAIL_ADDRESS>

Pull Request Test Coverage Report for Build db1ec70d23b92d6d1734885c3592c7ce0f379bff-PR-235

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

Totals

Change from base Build 37886bc6e1d006629b943c7bc4fab65a76c63713:
0.0%

Covered Lines:
897

Relevant Lines:
1111

💛  - Coveralls


Error log does not indicate TF installation required

On Mac, Python 2.7
If TF flag set to True in activity_classifier.create() without TF installed. The error message does not indicate that TF is missing:
Using CPU to create model
Traceback (most recent call last):
  File "run_ac.py", line 20, in <module>
    prediction_window=50, _advanced_parameters={'use_tensorflow':True})
  File "/Users/fareeha/temp_testing/lib/python2.7/site-packages/turicreate/toolkits/activity_classifier/_activity_classifier.py", line 196, in create
    model.train(dataset, target, session_id, validation_set, options)
  File "/Users/fareeha/temp_testing/lib/python2.7/site-packages/turicreate/extensions.py", line 290, in <lambda>
    ret = lambda *args, **kwargs: self.__run_class_function(name, args, kwargs)
  File "/Users/fareeha/temp_testing/lib/python2.7/site-packages/turicreate/extensions.py", line 277, in __run_class_function
    raise _ToolkitError(exc)
turicreate.toolkits._main.ToolkitError: An error occurred!

Installing TF fixes the issue

Refer to #2373


Single packing

This is from the investigation of MGDSTRM-7836.  This proposes a set of sizings for our pods such that we can fit 10 managedkafkas per 1 m5.2xlarge node.  To enable this set of values, you have to override the QUARKUS_PROFILE in the FSO deployment to trial.
At .8 MB/s of message data most tests run by the instance profiler (which are at or exceeding the capacity values currently proposed) the performance is more than acceptable.  The cpu does tend to hover at the limit, so we are over committing the cpu by a little - if all 10 brokers on same node were running at .8 MB/s or greater, you'd expect to see increased latency.  As noted on the issue though you see increasing latency after that point anyway due to the affect of the quota.
We will late address support of multiple profiles at a time.

you have to override the QUARKUS_PROFILE in the FSO deployment to trial.

I am wondering how this can be done? This is an operator-level property, so this needs to be set when we are installing FSO, so we can not add it into the SOP for OSD creation. since we do not have different MT pipelines for different OSD types, we can not modify the MT at bundle deployment time either. We can manually set it, but I prefer to remove the human element there.

I am wondering how this can be done?

If we lack a mechanism to change the deployment ahead of time, the next option is to use the kas-fleetshard-config configmap with these properties instead.

I am wondering how this can be done?

If we lack a mechanism to change the deployment ahead of time, the next option is to use the kas-fleetshard-config configmap with these properties instead.

Can the addon secret be used to set the profile? I think it is loaded very early in the startup process so perhaps it's possible?

Can the addon secret be used to set the profile? I think it is loaded very early in the startup process so perhaps it's possible?

That's currently only for sync. I'm honestly not sure if that is earlier enough, but I can test it out.  At worst we'd have to add that same optional handling that you are adding to sync.  The logic to use kas-fleetshard-config exists, so I'll try it there first (just setting the profile, rather than all of the properties).

There is a comment on this in the epic brief, lets's confirm there what we would like there with the control plane team before we commit to the code here IMO.

There is a comment on this in the epic brief, lets's confirm there what we would like there with the control plane team before we commit to the code here IMO.

I've updated this with changes to the instance profiler as well.
It's fine to commit these changes for the cleanup to the configuration handling even if we have to go a different direction with the usage of a configmap.

Merged to begin work on letting the selection of the profile be driven by something (TBD) in the managedkafka - that will be a much larger change.


Bindings should not fire when GUI elements receive text input

Currently the bind system in Grid causes GUI callbacks to fire as well as bindings to dispatch their concommands. Catching the textinput events and preventing bindings from occuring should fix this behavior.

Fixed internally by @Polkm in vertex-adventure@2dc6bc0.


Error since release of babel-preset-babili 0.1.3

Hi guys
I'm using babili-webpack-plugin but since you release the version<EMAIL_ADDRESS>2 days ago I have my production build with errors after minifying my javascript code. I haven't been able to identify the dependency with bug (so I dont know if it is related with this https://github.com/babel/babili/issues/577) however reverting babili to version 0.0.11 (which also reverts all the other babili packages for sure like babel-plugin-minify-constant-folding) everything starts working again.
This are the errors I have (I'm trying to link the source maps to identify the code before it was minified):
Uncaught (in promise) TypeError: Cannot read property 'location' of undefined
function Router() {
    var _temp, _this, _ret;

    _classCallCheck(this, Router);

    for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
      args[_key] = arguments[_key];
    }

    return _ret = (_temp = (_this = _possibleConstructorReturn(this, _React$Component.call.apply(_React$Component, [this].concat(args))), _this), _this.state = {
      match: _this.computeMatch(_this.props.history.location.pathname)
    }, _temp), _possibleConstructorReturn(_this, _ret);
  }

This code is from react-router.

Guys it's confirmed..
With those versions everything work:
"babel-preset-babili": "0.1.2",

    "babel-plugin-minify-constant-folding": "0.1.1",
    "babel-plugin-minify-builtins": "0.1.1",
    "babel-plugin-minify-dead-code-elimination": "0.1.6",
    "babel-plugin-minify-flip-comparisons": "0.1.1",
    "babel-plugin-minify-guarded-expressions": "0.1.1",
    "babel-plugin-minify-infinity": "0.1.1",
    "babel-plugin-minify-mangle-names": "0.1.2",
    "babel-plugin-minify-numeric-literals": "0.1.1",
    "babel-plugin-minify-replace": "0.1.1",
    "babel-plugin-minify-simplify": "0.1.1",
    "babel-plugin-minify-type-constructors":"0.1.1",
    "babel-plugin-transform-inline-consecutive-adds":"0.1.1",
    "babel-plugin-transform-member-expression-literals":"6.8.3",
    "babel-plugin-transform-merge-sibling-variables":"6.8.4",
    "babel-plugin-transform-minify-booleans":"6.8.2",
    "babel-plugin-transform-property-literals":"6.8.3",
    "babel-plugin-transform-regexp-constructors":"0.1.1",
    "babel-plugin-transform-remove-console":"6.8.3",
    "babel-plugin-transform-remove-debugger":"6.8.3",
    "babel-plugin-transform-remove-undefined":"0.1.1",
    "babel-plugin-transform-simplify-comparison-operators":"6.8.3",
    "babel-plugin-transform-undefined-to-void":"6.8.2",

changing from<EMAIL_ADDRESS>to<EMAIL_ADDRESS>the build stop working again.

I'm not sure what the bug is from the code your provided. Can you give me more details - like stack trace or minimal reproduction of the issue ?

@boopathi I can post the full stack trace of this particular issue I post but the code are the one I post above. As this is related with babel-plugin-minify-constant-folding and the code I post have an Array.concat do u believe that this issue is also related with the already reported code?

I'm getting the same error, but it only occurs if the JS was compiled in my docker build. I tried fresh npm install's on my mac, and everything compiled just fine. The minified file inside the docker image is actually different than my mac as well. Can't pinpoint the difference between environments

I think this is because of https://github.com/babel/babili/issues/577. Fixed in https://github.com/babel/babili/pull/578.

As mentioned, Array.prototype.concat is fixed in #578. Will do a release soon.


Generalized Block EndBlock event indexing and Tendermint Liquidity events

This PR adds the ability to index block EndBlock events in a generalized manner. This solution was required for the following reasons:

The Tendermint Liquidity module does the actual work for transactions in EndBlock events, not the actual transaction.
We already know how to index block events, see the way Osmosis rewards work
Osmosis reward indexing is oriented specifically to Osmosis rewards, we needed more generalized code so we can extend block event indexing in the future

How it works
New Config Values
There are 3 new config values in-use:
index-block-events
If true, the indexer will attempt to index block BeginBlock and EndBlock events.
block-events-start-block
The block height to start indexing block events.
block-events-end-block
The block height to stop indexing rewards. (set to -1 to run indefinitely)
Indexing Loop
The Block Event indexer loop works like this:
Sequential indexing
The indexer will always work sequentially through blocks, not skipping around or going backwards.
Block RPC call
Gets the block BeginBlock and EndBlock data using the BlockResults endpoint. This endpoint returns 2 arrays for BeginBlock and EndBlock events.
Event Handlers
There is a generalized method, very similar to how our transaction indexer works, that will include/exclude proper event handlers per-chain.
Each chain we index can be configured in-code to include handlers for particular event types.
Each event handler will return an array of relevant block events based on what happened in the event.
Failures
A new database table has been included for failed_event_blocks. We have never tracked failures in Osmosis rewards, so this sets up a method to do so if we transition Osmosis rewards to use this method.
Failed blocks will be saved in this table for later debugging/reindexing.
Database Handling and Idempotent event handling
We save the block events similar to how we store Osmosis rewards. Each will be linked to a particular source. Each will have a unique hash constructed in the following manner:
Event hash = sha256(Address + blockHeight + Coin + EventSource)
This will ensure that we do not index the same event twice, if we revisit a block for whatever reason.
Indefinite Loop
This method respects the -1 end-block specification. If it catches up to the chain it will sleep for a number of seconds, allowing the chain to continue creating blocks. When it wakes up it will resume indexing. It will repeat this indefinitely, allowing the app to run unmonitored.
How it was tested
CosmosHub included the Tendermint Liquidity module for a number of blocks in 2021. These blocks contain Block events in the EndBlock for Tendermint Liquidity.
The following blocks were used to test the changes:

7453602, 7453740 - have deposit_to_pool
7453661, 7453692, 7453706, 7453722, 7453740, 7453786 - have swap_transacted
7453852 - has withdraw_from_pool

If you are interested in testing, you can set the following config values to see how it works:
index-block-events = true
block-events-start-block = 7453600
block-events-end-block = 7453900

awesome, thanks @pharr117 .  I'm looking forward to doing a reindex.


Pooling - points found in the last 24 hours (daily report)

Hello,
I have a suggestion for an enhancement:
Please add "Points found in the last 24 hours" calculated value to the daily reports.
This will give valuable information if we're pooling properly.
I know it's visible in Chia's GUI, but for those of us using machinaris/cli it's not visible.
Thanks for your time!

Is this the same as the partial proofs information in the daily stats which we released in 0.7.0 now?

No, have a look here:
https://github.com/Chia-Network/chia-blockchain/wiki/Pooling-User-Guide
"You should ensure that your points found in the last 24h are accurate. You should be obtaining around 10 points per day per k32, so if you have 100 k32 plots, you should be getting around 1000 points per day. Make sure your points balance is going up."


scss: add linting; start fixing

Current coverage is 56.70% (diff: 100%)

Merging #361 into master will not change coverage

@@             master       #361   diff @@
==========================================
  Files            12         12
  Lines          1037       1037
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
  Hits            588        588
  Misses          449        449
  Partials          0          0

Powered by Codecov. Last update 713f363...2ff15a9


Fix typo

It was intentional, lmao
Here you go https://en.wikipedia.org/wiki/Engrish

Intentional not a typo error 🤗

I think it would be best if I added an abbreviation tag for it so people do not get confused.

Sorry for my misunderstanding 😂
Because in this sentence
「Chinese and Engrish names returned by the API are renamed to simpler English fields.」
There is a word English  at the end of the sentence

I have no idea how else to word it.


[BUG] 0.12.2 Failing adding new extension source

Describe the bug
I want to add an new Extension source. I add the line and press " + " or Enter. Nothing happens
To Reproduce
Steps to reproduce the behavior:

Go to section "Server--> Server"
Add extension source
Try to confirm your changes
See it´s not been added

Version

LNbits version: 0.12.2
Desktop: Chrome, Firefox | Mobile android - Chrome, Brave, Opera

fixed!


Inconsistent state of deleteLocalData variable between MgmtCluster resource and Cluster configuration in Cluster Management screen.

Rancher Server Setup

Rancher version: 2.6.0
Installation option (Docker install/Helm Chart): Docker
Proxy/Cert Details: CA

Information about the Cluster

Kubernetes version: 1.18.20
Cluster Type (Local/Downstream): Downstream

If downstream, what type of cluster? (Custom/Imported or specify provider for Hosted/Infrastructure Provider): Custom

Describe the bug
The configuration edit screen for the cluster does not load the state of the variable correctly and is always set to false. The option will still change the variable on save.
This lead us to a situation where a cluster update failed because we require this var to be set to true to drain our nodes, but it defaulted to being set to false and this was applied after changing the Kubernetes version and pressing save.
To Reproduce

Create Cluster
Set Delete Empty Dir Data to true
Save

Result
Delete Empty Dir Data is set to false while the deleteLocalData variable is set to true
Expected Result
Both variables should match
Screenshots

Additional context
The rancher instance was upgraded from 2.4 to 2.5 and then 2.6
This happened both on a newly created Custom cluster and a cluster that from before the upgrades.
SURE-4145

Note - you need to check the 'Drain nodes' radio button to Yes to see the extra options here


Missing DeleteBehavior in snapshot for owned type in another table.

I have an owned type, saved to a different table, both tables with a simple integer key.
    builder
                .OwnsOne(e => e.Value)
                .ToTable("item_value");

When I generated a migration in ef core 2.2, the snapshot used to specify the delete behavior of this FK explicitly. The snapshot generated from ef core 3 does not. Simplified diff;
-                            b1.HasOne("Namespace.Item")
-                                .WithOne("ItemValue")
-                                .HasForeignKey("Namespace.Value", "ItemId")
-                                .OnDelete(DeleteBehavior.Cascade);
+                            b1.WithOwner()
+                                .HasForeignKey("ItemId");

Loading this snapshot initialises this foreign key with DeleteBehaviour.ClientSetNull. MigrationsModelDiffer treats this as a difference from the current model, so every subsequent migration causes this key to be dropped and recreated unnecessarily;
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropForeignKey(
                name: "FK_item_value_item_id",
                table: "item_value");

            migrationBuilder.AddForeignKey(
                name: "FK_item_value_item_id",
                table: "item_value",
                column: "id",
                principalTable: "item",
                principalColumn: "id",
                onDelete: ReferentialAction.Cascade);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropForeignKey(
                name: "FK_item_value_item_id",
                table: "item_value");

            migrationBuilder.AddForeignKey(
                name: "FK_item_value_item_id",
                table: "item_value",
                column: "id",
                principalTable: "item",
                principalColumn: "id",
                onDelete: ReferentialAction.Restrict);
        }

@AndriySvyryd to find dupe.

Duplicate of https://github.com/aspnet/EntityFrameworkCore/issues/18045


Be consistent with the usage of command line prompts

This applies to the bash-like prompts, represented with a dollar sign $, and the python primary and secondary prompts represented, by >>> and ... respectively.
Although an argument can be made about the impracticality of the presence of prompt symbols when copying and pasting examples, the prompt symbols do help to distinguish between the command and its output. The latter advantage has been judged important enough to chose to use prompt.

closing as this has been resolved for the most part at least -- OK @sohkai ?

Sounds good.


Homework-2

Drift Video Link :

Metric
Value

alert_status
b:white_check_mark: OK/b

bugs
0

code_smells
24

reliability_rating
A (0 Bugs)br/Note: A being best, E being worst

security_rating
A (0 Vulnerabilities)br/Note: A being best, E being worst

vulnerabilities
0


bitbox02: update bitbox02 to 5.1.0

Updated pyproject.toml and setup.py, then: poetry update bitbox02 --lock.
Also fixes the failing type check CI job.

Merging as type check now passes

Merging as type check now passes


Unsolvable seeds

After inspecting trained agents and playing the Procgen games myself I noticed some unsolvable seeds/bugs in a few games. The most serious ones were in the Jumper environment, with ~7% of seeds finishing after 1 frame with no reward.
Jumper
Some levels finish in 1 step regardless of action taken, because the agent spawns on top of the goal or enemy. Here's an example to see it in interactive mode (add --record-dir flag if you want a video saved):
python -m procgen.interactive --distribution-mode easy --vision human --env-name jumper --level-seed 5
Some pictures to illustrate:
Correct seed. Agent with enemy on one side (level-seed=6):

Spawning on top of an enemy (level-seed=5):

Spawning on top of the goal  (level-seed=9):

I used the following code to calculate the number of seeds suffering from this issue (fix a seed and keep resetting to try out all possible actions to see if you can make the episode last longer than 1 step):
import gym

def is_unsolvable(seed):
    env = gym.make("procgen:procgen-jumper-v0", distribution_mode="easy", num_levels=1, start_level=seed)
    for action in range(15):
        env.reset()
        obs, rew, done, info = env.step(action)
        if not done or rew > 0:  # remove the rew > 0 clause to include spawning on top of the goal.
            return False
    return True

c = 0
n = 100000
for seed in range(1, n + 1):
    c += is_unsolvable(seed)
    if seed % 1000 == 0:
        print(c, seed)

Out of first 100,000 seeds on easy difficulty 7,820 (7.8%) spawn on top of an enemy, 748 (0.7%) spawn on top of the goal.
On hard difficulty 6,635 (6.6%) spawn on top of an enemy, 140 (0.1%) spawn on top of the goal.
This might explain why a fully trained agent only achieves an average reward of 8 out of 10 even on easy difficulty.
Bigfish
Sometimes the agent spawns on the edge of the environment:

If it moves to the right in this position it will get permanently stuck. If it moves to the left it will escape. You can see this using:
python -m procgen.interactive --distribution-mode easy --vision human --env-name bigfish --level-seed 24046244
I don't know how severe this problem is exactly, but I had it happen 3 times in a random sample of 100 easy seeds (24046244, 272366766,<PHONE_NUMBER>).
A similar situation can arise when the agent consumes a fish while being next to the top or bottom of the environment. If it grows, it will grow into the edge and will be unable to move left or right.
Miner
This doesn't happen often, but here's one example of an impossible seed (easy,<PHONE_NUMBER>). The bottom right diamond cannot be reached.

Caveflyer
Similar to Jumper environment. In 292 (0.3%) out of 100,000 easy seeds and in 410 (0.4%) out of 100,000 hard seeds the agent spawns next to an enemy and dies in 1 step regardless of action taken:

Interactive code to try it:
python -m procgen.interactive --distribution-mode easy --vision human --env-name caveflyer --level-seed 1326

Thanks for the thorough investigation!
The paper says: "The procedural generation in each environment strives to make all levels solvable, but this is not strictly guaranteed. For each environment, greater than 99% of levels are believed to be solvable."  So it sounds like Jumper, at least, does not meet that requirement.
@kcobbe any thoughts?  I think we should make note of this (at least in the README), but changing the generation at this point would make it hard to compare results, since the results would depend on what version of procgen was being used.

Thank you very much for these detailed notes! I have updated the README to mention these issues.
I agree with @christopher-hesse that we don't currently want to patch these issues, in order to make it easier to compare against results that have already been published. However, it's definitely important to note their existence, particularly in the case of Jumper, which appears to have the most significant bug (in terms of influencing max expected achievable reward).
I appreciate you bringing this to our attention.


Typo in screenshot of documentation

Missing space between "the" and "name" in documentation.

Also, can we use placeholder as keys and uri ?

I fixed the image, and I will be checking that in shortly.
I typically prefer not to use placeholders for values because some customers have misinterpreted placeholders as variables, which they assume are coming from somewhere else, so we get questions about that. Because of their confusion, I prefer to use example values when possible.


No music/sfx

Hello, great little game.
There is no sound/sfx. I'm using Debian 9 64 bit.

Thanks! Music and sfx is still not done. Should be soon.

It's almost done!


[Suggestion]: Make hunger poison you

General Info

[ ] I would like to propose new content
[X] I would like to propose changes
[ ] I would like to propose another thing

Suggestion Description
Due to how the mod work, the hunger effect does nothing, so eating rotten flesh or raw chicken has no negatives and rotten flesh becomes a ok healing item
It would be great if hunger caused poison at a simillar speed to normal hunger

Has been added in 7.1.0


Get rid of C-style comments

C-style comments (// single line, /* multi line */) was the first thing that came to my mind, but I don't consider them very elegant.
Possible substitutes for single line comments:

... (ellipsis) – really feels like one is commenting on something
# – tradition in many languages
| – pipe as a tribute to Unix pipe
! – exclamation mark as a sign for "beware"
^
*

Possible substitutes for multi line comments:

"meh" – inspired by Smalltalk
|meh| – Unix pipe

Fuck it for now.


[NETBEANS-54] Module Review extexecution.process (patch)

We now generate the external/winp-1.14-patched.jar binary from Maven sources with a patch.

Thanks, Matthias, for your review! :-)

Merged - thank you!


Add Semantic Focus Handling for Widgets

After #196 and the switch to phosphor, cf https://github.com/phosphorjs/phosphor/issues/77

Fixed by #636.


I18n and error templates

Description
The current error messages or great at finding the failed validation returned via api, but this could also be harnessed in the frontend. So it would be really useful to be able to specify a custom error template. compile might be a good place, as it has a config option already. In the spirit of this project this should be fully types as well so we do not have to resort to actual template strings a la "{{field}} is invalid". And as an additional proposal something that bugs me with any other validation libraray: An easy option to translate the fieldnames, without adding any additional overhead.
References
Example how this could look like.
type ErrorTemplate = {
    errorTemplate: {
        string: {
            invalidType?: (d: { path: string[] }) => string;
            invalidRegex?: (d: { path: string[] }) => string;
            toLong?: (d: { path: string[]; current: number; limit: number }) => string;
        };
    };
};

const exampleFieldTranslation : Record<string,string> = { userID: "User ID", parentCompany: "Parent Company",unknown:"Unknown Field" };
const exampleFieldTranslationForPath: Record<string, string> = {
    "admin.user.id": "Admin User ID",
};

const errorTemp: ErrorTemplate = {
    errorTemplate: {
        string: {
            invalidType: (s) => `${exampleFieldTranslation[s.path.at(-1) ?? "unknown"]} must be a text!`,
            invalidRegex: (s) => `${exampleFieldTranslationForPath[s.path.join(".")]} does not match required format!`,
            toLong: (s) => `${s.path.join(".")} has to be ${s.limit} characters long`,
        },
    },
};
export const Collections = compile({ ...Company, ...User, ...CompanyGroup }, errorTemp);

With this, you can either display the whole path by just joining it. Or you could just output the last part of the path if that's all the user should see. You could even fetch a translation for the field name by simply accessing a record of translations. The user can choose how they want to translate their app. They also can choose to specify the whole path or just the last key as well as shown in the example above. This is extendeable enough that you could even write your own custom function and pass path as a parameter. That would allow you to make a "fallback" system where full paths would be prioritised, but you could resort to just the last key entry, if no full path exists like so.

function fieldName(path:string[]):string{
  const path=exampleFieldTranslationForPath[path.join(".")];
  if (path)
    return path;
  const field=exampleFieldTranslation[path.at(-1)];
  if (field)
    return field;
  return "Missing translation for "+path.join(".");
}

@KevinGregull As you may have noticed, some of the changes have taken a little longer than anticipated :weary: That said, I am currently working on the customizable validation error API!
I wanted to run an example by you for the API I'm considering for error options. There would be a key like this for each error type, much like you suggested suggested. The biggest change is that for bounds specifically, there would be a single entry point for customizing all bounds errors (which could be numbers, strings or lists). If you need more granularity e.g. to customize string bounds, you can use the units key which in that case would be characters or simply the type of the value being checked to know if the value is a string, otherwise you can just return the deafultMessage.
Any feedback would be greatly appreciated, and I'll try to wrap up this PR ASAP 🚀