linux: fix sscanf() overflows reading from /proc

Use "%" PRIu64 and uint64_t for sscanf-ing large values, not "%lu"
and unsigned long. The latter can overflow when libuv is a 32 bits
application running on a 64 bits machine.
Fixes: https://github.com/libuv/libuv/issues/2297
CI: https://ci.nodejs.org/job/libuv-test-commit/1404/
@cjihrig It's probably worth putting out a .1 release for this. Embarrassing bug. :-(

It's probably worth putting out a .1 release for this.

I'll make a release today.

Landed in https://github.com/libuv/libuv/commit/d7f0055b8014196b3c3a3a4eaf86e6ea81745ff0. Thanks!


Detekt not running on test folder

The bug you're experiencing might have already be reported!
Please search in the issues before creating one.
Expected Behavior
I should get some report logs after running ./gradlew detekt
I also expect to receive an error of type TooGenericExceptionCaught.
I am using the default configuration from this repo and removed the "excludes" line from TooGenericExceptionCaught:
  TooGenericExceptionCaught:
    active: true
    exceptionNames:
      - ArrayIndexOutOfBoundsException
      - Error
      - Exception
      - IllegalMonitorStateException
      - NullPointerException
      - IndexOutOfBoundsException
      - RuntimeException
      - Throwable
    allowedExceptionNameRegex: "^(_|(ignore|expected).*)"

I have this code in a file named src/test/kotlin/.../FeatureSwitchUtils.kt
        try {
            // do something
        } catch (e: Exception) {
            false
        }

Observed Behavior
I don't get any output and the command runs without errors.
Your Environment

Version of detekt used: 1.3.1

Does any other rule report smells for code in your test package?

Couldn't reproduce this problem. The exclude filters shouldn't mention test.


Problem with personal dictionary

Excuse me, I've find a bug in the spellchecker-cli. I'm using Mac OS X 10.11.6 and here is my command
spellchecker --plugins spell repeated-words syntax-urls --dictionaries dictionary/dictionary.txt dictionary/science.txt --files 'docs/data/**/*.md'  && echo Spellcheck passed.) || (echo Spellcheck failed! Please review and fix errors/add words to dictionary as needed. && exit 1)

As you see in the picture below, the spellchecker-cli do=id warn me about a word that is in the dictionary.txt, this seem only occurs with other words which have similar spelling with the one another english word
I don't know if you can fix this issue

Hi there! Thanks for the issue. Dictionaries are case-sensitive - that's why your lowercase dictionary entry isn't matching the capitalized word in the file being spellchecked. I think this behaviour makes sense - it allows the program to detect mis-capitalizations of words in the dictionary, but also allows users to ignore different capitalizations by including them in the dictionary.
To fix this, I'd suggest adding the capitalized version of the word to the dictionary. Let me know if that helps :slightly_smiling_face:

Hi, thanks for your suggestion,  as far as I can check, most of the errors occurred when I run the spellcheck are issues with "capitalized word". I have tried to add that in my personal dictionary and it's fixed. Thanks for your help. 🙂
There is only a problem with repeated word
As you see here, some languages have some phrase words. In my case, for example, the phrase word is song song (Vietnamese) which mean parallel (English) but the retext-repeated-words recognize it as 2 separate words instead of a phrase word only which lead to the error shown below, I've tried to add this in the dictionary but didn't help

I'm glad that was helpful! And thanks for bringing up this other issue. As far as I can tell, retext-repeated-words isn't powerful enough to recognize phrase words from non-English languages. I think it's only intended to be run on English text, unfortunately. I think the best option would be to disable that plugin.
Also I just found that retext-spell can integrate with this Vietnamese dictionary. I'd accept a PR to add support for that dictionary to spellchecker-cli. I think that'd be as simple as adding dictionary-vi as a dependency, adding a couple of tests, and documenting the change.

Also I just found that retext-spell can integrate with this Vietnamese dictionary. I'd accept a PR to add support for that dictionary to spellchecker-cli. I think that'd be as simple as adding dictionary-vi as a dependency, adding a couple of tests, and documenting the change.

Sorry that I don't have much knowledge about coding (information technology) just enough skill to create a vuepress site follow their site so I don't know how to add support for vietnamese dictionary to spellchecker-cli, I've tried to read the index.js here as well as reading about the retext-spell's API section but haven't found out the way add another language. I'm really sorry for this

I understand, don't worry about it! :slightly_smiling_face:


Move off Syntex

And use libsyntax directly. This means we stop working on stable Rust. However, we can address this by distributing via Rustup instead of Cargo (#1526).

I have a branch that uses libsyntax, not sure if to land or not. Would mean the end of stable rustfmt in the short term.

There are a few test failures due to #1541 and #1542, otherwise seems to be working. Branch is https://github.com/rust-lang-nursery/rustfmt/tree/libsyntax

If we don't merge going to have to keep rebasing that branch :-(

Awesome, please PR it! I think we should leave the MacroDef issue open and the FIXME in place - we should at some point fix that properly.

Thanks! I will create a PR shortly.

No, against libsyntax branch

Thanks!

@nrc: ten days ago you published this blog announcing the transition to libsyntax. Your blog has been spread further in the This Week in Rust newsletter.
After some careful experimentation and review, which cost me an hour or so, my conclusion is this:

The new rustfmt-nightly crate cannot be installed yet, at least not with Cargo using a conventional invocation.
No guidance in the README of the default branch of this repo (nor on the libsyntax branch, for that matter) on how to actually install/use the libsyntax branch, or what the transition path is (when will it be merged into the default branch, etc.).
Lots of open issues that relate to this, with the promises/suggestions about the pending transition.

I personally can imagine some technical tricks get started, but the transition should be documented.
I hope you understand this can appear a bit disorganized and disappointing in general. You probably tried to avoid this impression. Can you please elucidate the current status? Do you recognize the issues I point out or not? Thanks for your efforts anyway.

@sanmai-NL the transition hasn't happened yet. I'll start today and it should be well-documented by the time I'm done.

@nrc: Thanks for your effort! The time planning was unclear to me from the announcement.


I'm gonna type this a lot. Maybe just grunt master or if there are plans to make this more generic in future, e.g. support other branches (like lts) then grunt update ?

I like grunt master 👍 @kevinansfield ?

Updated to grunt master

This needs a rebase 😉

rebased


Adding into final results Features missed. For instance, if the line to

process has not variables, the field "FeatureVars" was not in the
result. Now, it has an empty list.

Related to issue: https://github.com/SpoonLabs/coming/issues/183


Implement regex for consumer_groups

Remake of https://github.com/DataDog/integrations-core/pull/14193
What does this PR do?

This PR adds a new config option called consumer_groups_regex. This functions similarly to consumer_groups to allow configuration of consumer groups, topics, and partitions to monitor, however this allows regex strings to be used.
This will be merged to master after https://github.com/DataDog/integrations-core/pull/13918 is merged.
Motivation

Feature request
Additional Notes

When monitor_unlisted_consumer_groups is set to True, then both consumer_groups and consumer_groups_regex will be ignored.
When consumer_groups and consumer_groups_regex are both used, then consumer groups from both config options will be collected.
Review checklist (to be filled by reviewers)

[ ] Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
[ ] PR title must be written as a CHANGELOG entry (see why)
[ ] Files changes must correspond to the primary purpose of the PR as described in the title (small unrelated changes should have their own PR)
[ ] PR must have changelog/ and integration/ labels attached
[ ] If the PR doesn't need to be tested during QA, please add a qa/skip-qa label.

I was also wondering if you know when this will be released? Seems like datadog-agent is still on the 2.16.x series for the kafka consumer integration?

I was also wondering if you know when this will be released? Seems like datadog-agent is still on the 2.16.x series for the kafka consumer integration?

The integration will be a part of Agent 7.46.0, which will be released in the upcoming few weeks.


artisan test inconsistencies

Laravel Version
10.16.1
PHP Version
8.1.20
Database Driver & Version
MariaDb 10.6
Description
Running ./artisan test -h tells us:
Description:
  Run the application tests

Usage:
  test [options]

Options:
      --without-tty         Disable output to TTY
      --compact             Indicates whether the compact printer should be used
      --coverage            Indicates whether code coverage information should be collected
      --min[=MIN]           Indicates the minimum threshold enforcement for code coverage
  -p, --parallel            Indicates if the tests should run in parallel
      --profile             Lists top 10 slowest tests
      --recreate-databases  Indicates if the test databases should be re-created
      --drop-databases      Indicates if the test databases should be dropped
      --without-databases   Indicates if database configuration should be performed
  -h, --help                Display help for the given command. When no command is given display help for the list command
  -q, --quiet               Do not output any message
  -V, --version             Display this application version
      --ansi|--no-ansi      Force (or disable --no-ansi) ANSI output
  -n, --no-interaction      Do not ask any interactive question
      --env[=ENV]           The environment the command should run under
  -v|vv|vvv, --verbose      Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

Running ./artisan test --parallel --compact tells us:
  The "--compact" option does not exist.

The same is true for --no-interaction as well.
Running XDEBUG_MODE=coverage ./artisan test --parallel (without --coverage option) still creates coverage reports.
Running XDEBUG_MODE=coverage ./artisan test --parallel --coverage started causing:
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 44323440 bytes) in /builds/guildplanner.pro/backend/vendor/nunomaduro/collision/.temp/coverage on line 3
PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 44323440 bytes) in /builds/guildplanner.pro/backend/vendor/nunomaduro/collision/.temp/coverage on line 3
[2023-07-28 00:48:47] testing.ERROR: Allowed memory size of 134217728 bytes exhausted (tried to allocate 44323440 bytes) {"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Allowed memory size of 134217728 bytes exhausted (tried to allocate 44323440 bytes) at /builds/guildplanner.pro/backend/vendor/nunomaduro/collision/.temp/coverage:3)
[stacktrace]
#0 {main}
"}
In coverage line 3:

  Allowed memory size of 134217728 bytes exhausted (tried to allocate 4432344
  0 bytes)

which wasn't happening few minor versions ago. The latter is happening despite this setting in phpunit.xml file:
<php>
    <ini name="memory_limit" value="512M" />
</php>

Steps To Reproduce
Details in description.

Can you try again? I think the issue should be fixed, because I've just tried it in a fresh Laravel application (with Pest and PHPUnit) and it seems to be working as expected.

Well, I've made a few changes on Pest. So, if you were using Pest, it's fixed now!

Well, I've made a few changes on Pest. So, if you were using Pest, it's fixed now!

No, I am not using Pest. Just PhpUnit through Paratest that comes bundled with Laravel.

How do I upload large file as a comment? Can't see attachment button anywhere...

You can this service: https://gist.github.com/.

https://gist.github.com/shehi/b83a9d25fa3fe5582e3060da2ca8dad7

Here are some points to consider:

When running tests in parallel, the compact option is not available, however the feedback could be indeed better on the output.
The --no-interaction  option cannot be used with the test command, however the feedback could be indeed better on the output.
Running XDEBUG_MODE=coverage ./artisan test --parallel does not generate a coverage report, or at least, I can't reproduce that.
If you encounter an "Allowed memory size" error, simply increase the PHP memory in your PHP settings (php.ini).

For points 1) and 2), you can pull request improvements directly on the Collision repository itself: https://github.com/nunomaduro/collision/blob/v7.x/src/Adapters/Laravel/Commands/TestCommand.php.

Regarding point (4): as mentioned in my original post above, setting memory limit doesn't help. At least when set via phpunit.xml config file. Is it correct to understand that PHPUnit config <ini name="memory_limit" value="512M" /> doesn't apply to coverage report creation stage? Because memory outage doesn't happen during test executions; it happens after tests have run and coverage report is being created.

This article can be useful (as it was to me): https://aregsar.com/blog/2020/laravel-run-parallel-tests-with-mysql-in-docker/


fix: [PDI-3057] - Users unable to upgrade Kubernetes version from landing page

Description 📝

Fixes a bug 🐛 preventing users from upgrading their Kubernetes cluster from the Kubernetes landing page ⬆
I believe the bug was caused by https://github.com/linode/manager/pull/10756

Specifically switching isLoading ➡ isFetching - see comment for explanation

Adds Cypress test that would have caught this bug 🧪

(the test uses mocked API data)

Preview 📷

Before
After

How to test 🧪
Reproduction steps

Spin up a Kubernetes cluster that is not on the latest version
Attempt the upgrade flow on the Kubernetes landing page
Observe that when clicking "Upgrade Version", the dialog will not proceed to step 2

Verification steps

Spin up a Kubernetes cluster that is not on the latest version
Test the upgrade flow on the Kubernetes landing page
Verify you see step 1 and step 2

As an Author I have considered 🤔

[ ] 👀 Doing a self review
[ ] ❔ Our contribution guidelines
[ ] 🤏 Splitting feature into small PRs
[ ] ➕ Adding a changeset
[x] 🧪 Providing/Improving test coverage
[ ] 🔐 Removing all sensitive information from the code and PR description
[ ] 🚩 Using a feature flag to protect the release
[ ] 👣 Providing comprehensive reproduction steps
[ ] 📑 Providing or updating our documentation
[ ] 🕛 Scheduling a pair reviewing session
[ ] 📱 Providing mobile support
[ ] ♿  Providing accessibility support

The recent test addition was failing on my end when I ran it locally, but I saw it passed in this run here (and then I tried rerunning the tests but received a couple errors - not sure if I'm missing permissions or something?). Will look into some more!


mbedtls_ssl_handshake returned -0x2880

Hi Team,
I am trying to add mbetls on my application. And i am getting some memory error. Please look once.
Hardware IC - STM32F429Zi  (https://www.st.com/en/microcontrollers-microprocessors/stm32f429zi.html)
Platform -  TrueStudio for STM32
Code Generator - STM32CubeMx
..\Middlewares\Third_Party\mbedTLS\library\ssl_tls.c:3161: handshake message: msglen = 5021, type = 11, hslen = 5021
..\Middlewares\Third_Party\mbedTLS\library\ssl_tls.c:3846: <= read record
..\Middlewares\Third_Party\mbedTLS\library\ssl_tls.c:4180: => send alert message
..\Middlewares\Third_Party\mbedTLS\library\ssl_tls.c:4181: send alert level=2 message=80
..\Middlewares\Third_Party\mbedTLS\library\ssl_tls.c:2764: => write record
..\Middlewares\Third_Party\mbedTLS\library\ssl_tls.c:2910: output record: msgtype = 21, version = [3:3], msglen = 2
..\Middlewares\Third_Party\mbedTLS\library\ssl_tls.c:2913: dumping 'output record sent to network' (7 bytes)
..\Middlewares\Third_Party\mbedTLS\library\ssl_tls.c:2913: 0000:  15 03 03 00 02 02 50                             ......P
..\Middlewares\Third_Party\mbedTLS\library\ssl_tls.c:2471: => flush output
..\Middlewares\Third_Party\mbedTLS\library\ssl_tls.c:2490: message length: 7, out_left: 7
..\Middlewares\Third_Party\mbedTLS\library\ssl_tls.c:2496: ssl->f_send() returned 7 (-0xfffffff9)
..\Middlewares\Third_Party\mbedTLS\library\ssl_tls.c:2523: <= flush output
..\Middlewares\Third_Party\mbedTLS\library\ssl_tls.c:2922: <= write record
..\Middlewares\Third_Party\mbedTLS\library\ssl_tls.c:4193: <= send alert message
..\Middlewares\Third_Party\mbedTLS\library\ssl_tls.c:4573:  mbedtls_x509_crt_parse_der() returned -10368 (-0x2880)
..\Middlewares\Third_Party\mbedTLS\library\ssl_tls.c:6764: <= handshake
failed
! mbedtls_ssl_handshake returned -0x2880
Last error was: -10368 - X509 - Allocation of memory failed
..\Middlewares\Third_Party\mbedTLS\library\ssl_tls.c:7542: => free
..\Middlewares\Third_Party\mbedTLS\library\ssl_tls.c:7607: <= free
Thanks

According to this post you have resolved your issue, so I am closing this ticket.
If you think this issue was wrongfully closed, please reopen, with followup information.


[RELENG-5491] Debug alma linux not starting

Codecov Report

Merging #89 (3011d55) into main (509eb28) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #89   +/-   ##
=======================================
  Coverage   71.36%   71.36%
=======================================
  Files          12       12
  Lines         716      716
=======================================
  Hits          511      511
  Misses        205      205

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 509eb28...3011d55. Read the comment docs.


Add optional debug flag

I use gulp-debug review which data is passed throw the pipes. This is most important when reviewing which files are include when using main-bower-files.

Do you debug all tasks simultaneously? I prefer an optional debug flag for each pipeline because I'm usually interested in a particular pipeline. Otherwise, the output can become pretty verbose on bigger projects.

It would work with a global --debug flag, if you only execute 'gulp venderScripts --debugyou are able to review this task, executinggulp --debug` would for sure show all debug messages we define.


Mutation Lanuage

I have read the docs thoroughly before making this feature request.

[X] Yes

I have read through other open issues, and my issue is not a duplicate.

[X] Yes

Description
It would be good if the input and output data in mutations had the capability to handle multilingual fields in the same way as done here #60 for queries. So that the mutation would look something like this:
mutation MyMutation {
  updateProduct2(input: {pk: 3, name:  [
  {language: "uk", "value": "test uk"},
  {language: "en", "value": "test en"},
  ]}) {
    pk
     name
     nameTranslations {
            language
            value
     }
  }
}

Motivation
This functionality will help people who will be developing multilingual websites with an admin panel.
Would you like to solve this issue yourself with a pull request?
No

Hi, I'll be on summer holiday for the month of July, and probably won't have the time to look into this until at least the middle of August. If you need something before then, I might have the time to review a PR and merge that.


[discussion] TIL about /usr/share/thumbnailers

It could be an interesting source of information about which Debian package can convert what:
$ apt-file search /usr/share/thumbnailers
atril-common: /usr/share/thumbnailers/atril.thumbnailer
blender-data: /usr/share/thumbnailers/blender.thumbnailer
dia-common: /usr/share/thumbnailers/dia.thumbnailer
evince: /usr/share/thumbnailers/evince.thumbnailer
exe-thumbnailer: /usr/share/thumbnailers/exe-dll-msi.thumbnailer
ffmpegthumbnailer: /usr/share/thumbnailers/ffmpegthumbnailer.thumbnailer
geogebra-gnome: /usr/share/thumbnailers/geogebra.thumbnailer
gnome-font-viewer: /usr/share/thumbnailers/gnome-font-viewer.thumbnailer
gnome-hwp-support: /usr/share/thumbnailers/hwp-thumbnailer.thumbnailer
gnome-nds-thumbnailer: /usr/share/thumbnailers/gnome-nds-thumbnailer.thumbnailer
gwyddion-common: /usr/share/thumbnailers/gwyddion.thumbnailer
heif-thumbnailer: /usr/share/thumbnailers/heif.thumbnailer
libgdk-pixbuf2.0-bin: /usr/share/thumbnailers/gdk-pixbuf-thumbnailer.thumbnailer
libgsf-bin: /usr/share/thumbnailers/gsf-office.thumbnailer
librsvg2-common: /usr/share/thumbnailers/librsvg.thumbnailer
mate-control-center-common: /usr/share/thumbnailers/mate-font-viewer.thumbnailer
mcomix: /usr/share/thumbnailers/comicthumb.thumbnailer
mypaint: /usr/share/thumbnailers/mypaint-ora.thumbnailer
ooo-thumbnailer: /usr/share/thumbnailers/ooo.thumbnailer
pentobi: /usr/share/thumbnailers/pentobi.thumbnailer
renderdoc: /usr/share/thumbnailers/renderdoc.thumbnailer
tiled: /usr/share/thumbnailers/tiled.thumbnailer
totem-common: /usr/share/thumbnailers/totem.thumbnailer

We typically learn about ooo-thumbnailer:
Description: thumbnailer for OpenOffice.org documents
 ooo-thumbnailer is a lightweight OpenOffice.org document thumbnailer that can
 be used by Nautilus to create thumbnails for your documents, spreadsheets,
 presentations and drawings.

Those files looks like this:
[Thumbnailer Entry]
TryExec=atril-thumbnailer
Exec=atril-thumbnailer -s %s %u %o
MimeType=application/pdf;application/x-bzpdf;application/x-gzpdf;application/x-xzpdf;application/postscript;application/x-bzpostscript;application/x-gzpostscri
pt;image/x-eps;image/x-bzeps;image/x-gzeps;application/x-dvi;application/x-bzdvi;application/x-gzdvi;image/vnd.djvu;image/vnd.djvu+multipage;image/tiff;application/x-cbr;application/x-cbz;application/x-cb7;application/x-cbt;application/vnd.comicbook+zip;application/vnd-comicbook.rar;image/*;application/oxps;application/vnd.ms-xpsdocument;

File managers typically use it (thunar, nemo, pcmanfm, ...) maybe exclusively via https://developer.gnome.org/gnome-desktop/stable/GnomeDesktopThumbnailFactory.html, like nemo.

Really interesting.
First that give use idea of new type of image preview we can do with preview_generator. I have not think about preview exe file, font file, etc.. we should also check about comic file format.
Secondly, we can imagine having a image-only builder based on this kind of Thumbnailer Entry. We set somewhere path of thumbnailer dir (by default /usr/share/thumbnailers) and our process read the available thumbnails and load config to use them to build preview of many mimetype.
I'm not sure that a good idea to rely on Gnome code there to get thumbnails there.
Now i see some issue with this idea of thumbnailer builder :

choose of thumbnailer in builder itself ? Which thumbnailer to choose if both totem-common and ffmpegthumbnailer can handle preview for .mp4 (we consider we remove our current ffmpeg builder)
thumbnailer builder. (that a known issue, see https://github.com/algoo/preview-generator/issues/159)
as this builder will be image only, we need to be able to rely on other builder for other type of preview ( idem, known issue : https://github.com/algoo/preview-generator/issues/159).

I do think 2 is the really blocking point.

replaced by #247


UILabel is not displayed when it is added to the page.

UILabel is not displayed when it is added to the page.
let page1 = UIView(frame: CGRect(x: 0, y: 0, width: 595.0, height: 842.0))
page1.backgroundColor = .white
let label = UILabel.init(frame: CGRect(x: 0, y: 0, width: 595.0, height: 25))
label.textAlignment = .center
label.textColor = UIColor.black
label.font = UIFont.systemFont(ofSize: 13, weight: UIFontWeightMedium)
page1.addSubview(label)

Hi Garispe - The following code works for me
let v1 = UIView(frame: CGRect(x: 0.0,y: 0, width: 1240, height: 1754))
v1.backgroundColor = .white
let title = UILabel(frame: CGRect(x: 0.0,y: 0, width: 1240.0, height: 50.0))
title.text = "Professional Development Report"
title.font = UIFont(name:"Avenir", size: 30.0)
title.textAlignment = .center
v1.addSubview(title)


Update editprofile.js (Add the functionality to prevent modification of the name and mail)

Add the functionality to prevent modification of the name and mail

@dooremont, could you submit a new request combining this one and #4024, please?

replace by  #4120


"getDetailsOfADeal" doesn't contain Deal Custom Fields in response

Hello!
I am trying to connect my project to PipeDrive and decided to use this php client, but I have some issues.
"getDetailsOfADeal" doesn't return custom fields, direct API call  response has them in "data", but when I use this client, $response ->data contains only default set of fields.
Checked all the documentation I could, but still cannot find the answer, is there any way to get deal custom field value via this client?

Hi!
What version of the SDK are you using?
I tried here with the latest one, it seems to be working. Here is my code snippet:
<?php

require_once __DIR__.'/../vendor/autoload.php';

session_start();

$apiToken = '<REPLACE WITH API TOKEN>';
$dealId = <REPLACE WITH DEAL ID>;

$client = new Pipedrive\Client(null, null, null, $apiToken);

try {
    $body = [];
     echo '

Get one deal with custom fields

';
     $response = $client->getDeals()->getDetailsOfADeal($dealId);

     echo '
';
     var_dump(json_encode($response->data, JSON_PRETTY_PRINT));
     echo '
';

} catch (\Pipedrive\APIException $e) {
    echo $e;
}

It brings my custom field:


Login Error "Client is not enabled for OAuth2.0 flows"

The login screen is shown but when you hit the "login" button and trace the requests being sent, after three 302 redirects, the flow stops with the error "Client is not enabled for Oauth2.0 flows":

I found traces that in Terraform/CloudFormation you need to set allowed_oauth_flows_user_pool_client/AllowedOAuthFlowsUserPoolClient to true. See https://stackoverflow.com/a/68883148 but as I'm new to Amplify and Cognito I do not know currently where to configure that in the project nor why it is not configured by default.

When I describe the user pool client I can see that the flag is set to false:
aws cognito-idp describe-user-pool-client --user-pool-id eu-central-1_dfdfdfdf --client-id 2p8jll6lop91dsfsdfsdfdsfsd
{
    "UserPoolClient": {
        "UserPoolId": "eu-central-1_dfdfdfdf",
        "ClientName": "minecrb59cd6eb_app_clientWeb",
        "ClientId": "2p8jll6lop91dsfsdfsdfdsfsd",
        "LastModifiedDate": "2022-10-02T23:50:44.061000+02:00",
        "CreationDate": "2022-10-02T12:05:44.384000+02:00",
        "RefreshTokenValidity": 30,
        "TokenValidityUnits": {
            "RefreshToken": "days"
        },
        "SupportedIdentityProviders": [
            "COGNITO",
            "Google"
        ],
        "CallbackURLs": [
            "https://main.d1lnr5h0wofwhn.amplifyapp.com/"
        ],
        "LogoutURLs": [
            "https://main.d1lnr5h0wofwhn.amplifyapp.com/"
        ],
        "AllowedOAuthFlows": [
            "code"
        ],
        "AllowedOAuthScopes": [
            "aws.cognito.signin.user.admin",
            "email",
            "openid",
            "phone",
            "profile"
        ],
        "AllowedOAuthFlowsUserPoolClient": false,
        "EnableTokenRevocation": true,
        "EnablePropagateAdditionalUserContextData": false,
        "AuthSessionValidity": 3
    }
}

When I update the userpool app client with the following command
aws cognito-idp update-user-pool-client --user-pool-id eu-central-1_dfdfdfdf --client-id 2p8jll6lop91dsfsdfsdfdsfsd --allowed-o-auth-flows-user-pool-client --allowed-o-auth-flows "code" --allowed-o-auth-scopes "phone" "email" "openid" "profile" "aws.cognito.signin.user.admin" --callback-urls "https://main.sdfsdfsdfsdfds.amplifyapp.com/" --logout-urls "https://main.sdfsdfsdfsdfsd.amplifyapp.com/" --supported-identity-providers COGNITO Google

The flag "AllowedOAuthFlowsUserPoolClient" is set to "true" and the login works!
I assume that there is a property in the backend's cli-inputs.json missing.

The cognito client is configured via amplify.yaml file. I also noticed that I needed to go to the console and save the configuration again with the same values to make it to work. I am investigating why it is not being saved.

WIll change this line at amplify.yml file. The AllowedOAuthFlowsUserPoolClient is set to false.

jq -n --arg url $APP_URL '{RefreshTokenValidity:30, TokenValidityUnits:{ RefreshToken:"days" }, SupportedIdentityProviders:[ "Google", "COGNITO" ], CallbackURLs:[ $url ], LogoutURLs:[ $url ], AllowedOAuthFlows:[ "code" ], AllowedOAuthScopes:[ "aws.cognito.signin.user.admin", "phone", "openid", "profile", "email" ], AllowedOAuthFlowsUserPoolClient:false }' > param.json

Pushed change to fix the issue


angular-split not wokring

Hi,
I am referring to  link https://bertrandg.github.io/angular-split/#/

I have installed angular-split using command
npm install angular-split --save
configured app.module.ts
i)  imported using satement import { AngularSplitModule } from 'angular-split';
ii)imports statement like  imports: [ // import Angular's modules
BrowserModule,
FormsModule,
HttpModule,
RouterModule.forRoot(ROUTES, { useHash: true }),
ChartModule,
TranslateModule.forRoot(),
AngularSplitModule
],
iii)Added html in home.component.html

<split direction="vertical">
   <split-area [size]="25">

Lorem ipsum dolor sit amet...

    </split-area>
    <split-area [size]="75">

Sed ut perspiciatis unde omnis iste natus erro...

    </split-area>
</split>

But still it doesn't work. It shows splitter component but it does not move when I try to slide
Kindly help.
My pacakge.json file package dependancies are as follows :

{
   "dependencies": {
    "@angular/common": "2.4.1",
    "@angular/compiler": "2.4.1",
    "@angular/core": "2.4.1",
    "@angular/forms": "2.4.1",
    "@angular/http": "2.4.1",
    "@angular/platform-browser": "2.4.1",
    "@angular/platform-browser-dynamic": "2.4.1",
    "@angular/platform-server": "2.4.1",
    "@angular/router": "3.4.1",
    "@angularclass/conventions-loader": "1.0.2",
    "@angularclass/hmr": "~1.2.2",
    "@angularclass/hmr-loader": "~3.0.2",
    "angular-split": "^0.1.15",
    "angular2-highcharts": "^0.4.0",
    "assets-webpack-plugin": "^3.4.0",
    "core-js": "^2.4.1",
    "http-server": "^0.9.0",
    "ie-shim": "^0.1.0",
    "ng2-translate": "^5.0.0",
    "protractor": "^4.0.14",
    "reflect-metadata": "^0.1.9",
    "rxjs": "^5.0.2",
    "zone.js": "~0.7.4"
  },
  "devDependencies": {
    "@angular/compiler-cli": "2.4.1",
    "@types/hammerjs": "^2.0.33",
    "@types/jasmine": "^2.2.34",
    "@types/node": "^6.0.38",
    "@types/selenium-webdriver": "2.53.38",
    "@types/source-map": "^0.5.0",
    "@types/uglify-js": "^2.0.27",
    "@types/webpack": "^1.12.34",
    "angular2-template-loader": "^0.6.0",
    "awesome-typescript-loader": "~3.0.0-beta.17",
    "codelyzer": "~2.0.0-beta.4",
    "copy-webpack-plugin": "^4.0.0",
    "css-loader": "^0.26.0",
    "exports-loader": "^0.6.3",
    "expose-loader": "^0.7.1",
    "file-loader": "^0.9.0",
    "gh-pages": "^0.12.0",
    "html-webpack-plugin": "^2.21.0",
    "imports-loader": "^0.7.0",
    "istanbul-instrumenter-loader": "1.2.0",
    "json-loader": "^0.5.4",
    "karma": "^1.2.0",
    "karma-chrome-launcher": "^2.0.0",
    "karma-coverage": "^1.1.1",
    "karma-jasmine": "^1.0.2",
    "karma-mocha-reporter": "^2.0.0",
    "karma-remap-coverage": "^0.1.4",
    "karma-sourcemap-loader": "^0.3.7",
    "karma-webpack": "1.8.0",
    "node-sass": "^4.1.1",
    "parse5": "^2.2.1",
    "raw-loader": "0.5.1",
    "rimraf": "~2.5.4",
    "sass-loader": "^4.1.1",
    "script-ext-html-webpack-plugin": "1.3.2",
    "source-map-loader": "^0.1.5",
    "string-replace-loader": "1.0.5",
    "style-loader": "^0.13.1",
    "to-string-loader": "^1.1.4",
    "ts-helpers": "1.1.2",
    "ts-node": "^2.0.0",
    "tslint": "^4.0.0-dev.0",
    "tslint-loader": "^3.3.0",
    "typedoc": "^0.5.3",
    "typescript": "2.0.10",
    "url-loader": "^0.5.7",
    "webpack": "2.1.0-beta.25",
    "webpack-dev-middleware": "1.6.1",
    "webpack-dev-server": "2.1.0-beta.9",
    "webpack-md5-hash": "0.0.5",
    "webpack-merge": "0.15.0"
  },
    "engines": {
    "node": ">= 4.2.1",
    "npm": ">= 3"
  }
}

It could be the split-gutter html tag that are not fixed on the right place. Try to chant its css to take the whole height.

Hi calebeaires ,
I am able to see that dragger component but not able to drag its fixed at one place.
How can I apply css to it work. Can you please give example

Hey I just checked it does not formed split-gutter component.
Kindly suggest

Be sure that your <split> component is inside a tag with height specified, you have 2 choices:

Set it to specific height in pixels: height: 300px, what I did here: https://bertrandg.github.io/angular-split/#/examples
Set it to a percentage: height: 100% but in that case, you have to set all parents height too, more about this: http://stackoverflow.com/questions/5657964/css-why-doesn-t-percentage-height-work

If it changes nothing, what's your way to bundle your app, angular-cli, starter?

Hey thank you very much.By giving height to parent it get solved

I could not see the splitter and none of the aforementioned solutions worked for me.
I'm using the setting unit="pixel"
Setting a fixed height would enable me to see the splitter but my panes have flexible heights so that solution wasn't practical.
I found that overriding the height setting to auto worked a charm. It's a simple solution:
.as-horizontal > .as-split-gutter {
height: auto !important;
}
This solution also works with panes for which the height is determined by their content!


Crash when screen size hits 0

Running a Macbook Pro, OSX Yosemite
While running, if the screen size ever hits 0, e.g.:

the game crashes.
Log is here: http://pastebin.com/v1FZ5C2d
I have not found a way to set a minimum screen size, or a way to prevent this from happening. Either of these would work. As it currently stands, I have to have code in resize to prevent it from getting that small.
Sorry if this has been reported before, I did a quick search, and asked around on the IRC channel, and was told that there was no way to set a minimum screen size, nor did they know why this was happening.

Can't reproduce on Windows or Linux (Fedora 21). Don't have a Mac to try with. Can someone else with a Mac try to reproduce, please?

This is most likely also an issue with LWJGL. Cannot confirm though as I don't have a Mac.

A workaround could possibly be a setting for a minimum screen size, which I do not believe that libGDX has (although I could be wrong). Is this feasible?

This is an issue in LWJGL. I can reproduce it on my Mac. That's something the LWJGL guys need to fix. Which it is, in LWJGL 3, as they use the more stable GLFW. We'll need to write a new backend for that. I'm closing this out as it's not super high priority and will be fixed eventually. Thanks for reporting!


Missing groupId during Nexus artifactDeployment with V32

Issue Description
The pipeline is failing in the stage: Artifact Deployment
In version V32 the nexus artifact deployment will not work anymore with this configuration:
  artifactDeployment:
    nexus:
      url: url nexus host
      repository: respository on nexus host
      credentialsId: credentials on jenkins

We tried to add the optional attribute groupId but then an other issue comes up that the artifactId must not be empty. Seems to be an issue to determine the groupId and artifactId from pom.xml
Thanks for your help
Jürgen
Log Output
16:22:44  --- Begin library step of: nexusUpload ---
[Pipeline] echo
16:22:44  Unstash content: piper-bin
[Pipeline] unstash
[Pipeline] echo
16:22:45  Unstash content: pipelineConfigAndTests
[Pipeline] unstash
[Pipeline] fileExists
[Pipeline] writeFile
[Pipeline] fileExists
[Pipeline] writeFile
[Pipeline] libraryResource
[Pipeline] writeFile
[Pipeline] withEnv
[Pipeline] {
[Pipeline] sh
16:22:45  + ./piper getConfig --contextConfig --stepMetadata .pipeline/tmp/metadata/nexusUpload.yaml --defaultConfig .pipeline/default_s4_pipeline_environment.yml
[Pipeline] readJSON
[Pipeline] echo
16:22:45  Config: [containerShell:, dockerEnvVars:[], dockerImage:maven:3.5.0-jdk-8, dockerOptions:, dockerPullImage:false, dockerWorkspace:, nexusCredentialsId:IRE-NEXUS]
[Pipeline] echo
16:22:45  --- Begin library step of: dockerExecute ---
[Pipeline] timeout
16:22:46  Timeout set to expire in 10 sec
[Pipeline] {
[Pipeline] httpRequest
[Pipeline] }
[Pipeline] // timeout
[Pipeline] sh
16:22:46  + docker ps -q
[Pipeline] isUnix
[Pipeline] sh
16:22:46  + docker pull maven:3.5.0-jdk-8
16:22:48  3.5.0-jdk-8: Pulling from library/maven
16:22:48  Digest: sha256:53b8e8f22464a07266ca34f90ac274c66f806a4edf71ebbf88e67e9499e08e05
16:22:48  Status: Image is up to date for maven:3.5.0-jdk-8
16:22:48  docker.io/library/maven:3.5.0-jdk-8
[Pipeline] isUnix
[Pipeline] sh
16:22:48  + docker inspect -f . maven:3.5.0-jdk-8
16:22:48  .
[Pipeline] withDockerContainer
16:22:48  Jenkins seems to be running inside container 495121830be451edd6c8651ca40a2922d2811898717e30f8bf47b249860296ba
16:22:48  $ docker run -t -d -u 1000:999 --env http_proxy --env https_proxy --env no_proxy --env HTTP_PROXY --env HTTPS_PROXY --env NO_PROXY -w /var/jenkins_home/workspace/-capacity-management_master-CBPFWSKFU4QLBEBUXW5SKHB6KYA4256WJHQADEA26T3IAY6NBSVQ@2 --volumes-from 495121830be451edd6c8651ca40a2922d2811898717e30f8bf47b249860296ba -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** -e ******** maven:3.5.0-jdk-8 cat
16:22:49  $ docker top 3a18ca97d4b5328be79ca888efb51fe11b7ecad44d78238ee41a244ca7f24826 -eo pid,comm
[Pipeline] {
[Pipeline] withCredentials
16:22:49  Masking supported pattern matches of $PIPER_username or $PIPER_password
[Pipeline] {
[Pipeline] sh
16:22:49  + ./piper nexusUpload --defaultConfig .pipeline/default_s4_pipeline_environment.yml
16:22:49  time="2020-04-23T14:22:49Z" level=info msg="Added default config '.pipeline/default_s4_pipeline_environment.yml'" library=SAP/jenkins-library stepName=nexusUpload
16:22:49  time="2020-04-23T14:22:49Z" level=info msg="Skipping npm upload because either no package json was found or NpmRepository option is not provided." library=SAP/jenkins-library stepName=nexusUpload
16:22:49  time="2020-04-23T14:22:49Z" level=info msg="Maven project structure detected" library=SAP/jenkins-library stepName=nexusUpload
16:22:50  time="2020-04-23T14:22:50Z" level=info msg="running command: mvn --file application/pom.xml -Dexpression=project.packaging -DforceStdout -q --batch-mode org.apache.maven.plugins:maven-help-plugin:3.1.0:evaluate" library=SAP/jenkins-library stepName=nexusUpload
16:23:00  time="2020-04-23T14:22:59Z" level=info msg="running command: mvn --file application/pom.xml -Dexpression=project.groupId -DforceStdout -q --batch-mode org.apache.maven.plugins:maven-help-plugin:3.1.0:evaluate" library=SAP/jenkins-library stepName=nexusUpload
16:23:02  time="2020-04-23T14:23:02Z" level=info msg="running command: mvn --file application/pom.xml -Dexpression=project.artifactId -DforceStdout -q --batch-mode org.apache.maven.plugins:maven-help-plugin:3.1.0:evaluate" library=SAP/jenkins-library stepName=nexusUpload
16:23:05  time="2020-04-23T14:23:05Z" level=info msg="running command: mvn --file application/pom.xml -Dexpression=project.version -DforceStdout -q --batch-mode org.apache.maven.plugins:maven-help-plugin:3.1.0:evaluate" library=SAP/jenkins-library stepName=nexusUpload
16:23:08  time="2020-04-23T14:23:07Z" level=fatal msg="step execution failed" error="groupID must not be empty" library=SAP/jenkins-library stepName=nexusUpload
[Pipeline] }
[Pipeline] // withCredentials
[Pipeline] }
16:23:08  $ docker stop --time=1 3a18ca97d4b5328be79ca888efb51fe11b7ecad44d78238ee41a244ca7f24826
16:23:09  $ docker rm -f 3a18ca97d4b5328be79ca888efb51fe11b7ecad44d78238ee41a244ca7f24826
[Pipeline] // withDockerContainer
[Pipeline] libraryResource
[Pipeline] echo
16:23:09  ----------------------------------------------------------
16:23:09  --- An error occurred in the library step: dockerExecute
16:23:09  ----------------------------------------------------------
16:23:09
16:23:09  The following parameters were available to the step:
16:23:09  ***
16:23:09  *** to show step parameters, set verbose:true in general pipeline configuration
16:23:09  *** WARNING: this may reveal sensitive information. ***
16:23:09  ***
16:23:09
16:23:09  The error was:
16:23:09  ***
16:23:09  hudson.AbortException: script returned exit code 1
16:23:09  ***
16:23:09
16:23:09  Further information:
16:23:09  * Documentation of library step dockerExecute: https://sap.github.io/jenkins-library/steps/dockerExecute/
16:23:09  * Source code of library step dockerExecute: https://github.com/SAP/jenkins-library/blob/master/vars/dockerExecute.groovy
16:23:09  * Library documentation: https://sap.github.io/jenkins-library/
16:23:09  * Library repository: https://github.com/SAP/jenkins-library/
16:23:09
16:23:09  ----------------------------------------------------------
16:23:09  --- End library step of: dockerExecute ---
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] libraryResource
[Pipeline] echo
16:23:10  ----------------------------------------------------------
16:23:10  --- An error occurred in the library step: nexusUpload
16:23:10  ----------------------------------------------------------
16:23:10
16:23:10  The following parameters were available to the step:
16:23:10  ***
16:23:10  *** to show step parameters, set verbose:true in general pipeline configuration
16:23:10  *** WARNING: this may reveal sensitive information. ***
16:23:10  ***
16:23:10
16:23:10  The error was:
16:23:10  ***
16:23:10  hudson.AbortException: script returned exit code 1
16:23:10  ***
16:23:10
16:23:10  Further information:
16:23:10  * Documentation of library step nexusUpload: https://sap.github.io/jenkins-library/steps/nexusUpload/
16:23:10  * Source code of library step nexusUpload: https://github.com/SAP/jenkins-library/blob/master/vars/nexusUpload.groovy
16:23:10  * Library documentation: https://sap.github.io/jenkins-library/
16:23:10  * Library repository: https://github.com/SAP/jenkins-library/
16:23:10
16:23:10  ----------------------------------------------------------
16:23:10  --- End library step of: nexusUpload ---

Search for existing solution beforehand

[X] I searched for an existing solution on StackOverflow and my question was not answered there
[X] I searched for a similar GitHub issue before and found none
[X] I checked the pipeline configuration docs and the general pipeline docs for an answer of my issue

Project Details

Project type:  SDK Maven Archetype scp-cf-spring

Hi Jürgen,
I could reproduce the issue with locally when using the same maven docker image (maven:3.5.0-jdk-8).
When using a new one (maven:3.6-jdk-8) it worked. I think it is related to the maven version.
Could you please try to configure the maven docker image for the step mavenExecute (or nexusUplaod) and let us know whether the issue still persists?
Thanks.
Daniel

Hi Daniel,
after using the new docker image groupId and artifactId were correct determined.
Now I run into a new error during nexus deployment.
Thanks,
Jürgen
13:57:50  time="2020-04-27T11:57:49Z" level=info msg="[INFO] ------------------------------------------------------------------------" library=SAP/jenkins-library stepName=nexusUpload
13:57:50  time="2020-04-27T11:57:49Z" level=info msg="[INFO] Reactor Summary for ire-obligatory-capacity-management - Root 1.0-2020-04-27T115014UTC_c9e7ac2efde27cc238da975d358cace514dee5e4:" library=SAP/jenkins-library stepName=nexusUpload
13:57:50  time="2020-04-27T11:57:49Z" level=info msg="[INFO] " library=SAP/jenkins-library stepName=nexusUpload
13:57:50  time="2020-04-27T11:57:49Z" level=info msg="[INFO] ire-obligatory-capacity-management - Root .......... FAILURE [  0.263 s]" library=SAP/jenkins-library stepName=nexusUpload
13:57:50  time="2020-04-27T11:57:49Z" level=info msg="[INFO] ire-obligatory-capacity-management - Application ... SKIPPED" library=SAP/jenkins-library stepName=nexusUpload
13:57:50  time="2020-04-27T11:57:49Z" level=info msg="[INFO] ire-obligatory-capacity-management - Unit Tests .... SKIPPED" library=SAP/jenkins-library stepName=nexusUpload
13:57:50  time="2020-04-27T11:57:49Z" level=info msg="[INFO] ire-obligatory-capacity-management - Integration Tests SKIPPED" library=SAP/jenkins-library stepName=nexusUpload
13:57:50  time="2020-04-27T11:57:49Z" level=info msg="[INFO] ------------------------------------------------------------------------" library=SAP/jenkins-library stepName=nexusUpload
13:57:50  time="2020-04-27T11:57:49Z" level=info msg="[INFO] BUILD FAILURE" library=SAP/jenkins-library stepName=nexusUpload
13:57:50  time="2020-04-27T11:57:49Z" level=info msg="[INFO] ------------------------------------------------------------------------" library=SAP/jenkins-library stepName=nexusUpload
13:57:50  time="2020-04-27T11:57:49Z" level=info msg="[INFO] Total time:  1.851 s" library=SAP/jenkins-library stepName=nexusUpload
13:57:50  time="2020-04-27T11:57:49Z" level=info msg="[INFO] Finished at: 2020-04-27T11:57:49Z" library=SAP/jenkins-library stepName=nexusUpload
13:57:50  time="2020-04-27T11:57:49Z" level=info msg="[INFO] ------------------------------------------------------------------------" library=SAP/jenkins-library stepName=nexusUpload
13:57:50  time="2020-04-27T11:57:49Z" level=info msg="[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy-file (default-cli) on project ire-obligatory-capacity-management: Failed to deploy artifacts: Could not transfer artifact group.msg.ire:ire-obligatory-capacity-management-application:pom:1.0-2020-04-27T115014UTC_c9e7ac2efde27cc238da975d358cace514dee5e4 from/to remote-repository (http://ire3.awscloud.msg.de:8081/repository/iRe-releases/): Failed to transfer file http://ire3.awscloud.msg.de:8081/repository/iRe-releases/group/msg/ire/ire-obligatory-capacity-management-application/1.0-2020-04-27T115014UTC_c9e7ac2efde27cc238da975d358cace514dee5e4/ire-obligatory-capacity-management-application-1.0-2020-04-27T115014UTC_c9e7ac2efde27cc238da975d358cace514dee5e4.pom with status code 401 -> [Help 1]" library=SAP/jenkins-library stepName=nexusUpload
13:57:50  time="2020-04-27T11:57:49Z" level=info msg="[ERROR] " library=SAP/jenkins-library stepName=nexusUpload
13:57:50  time="2020-04-27T11:57:49Z" level=info msg="[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch." library=SAP/jenkins-library stepName=nexusUpload
13:57:50  time="2020-04-27T11:57:49Z" level=info msg="[ERROR] Re-run Maven using the -X switch to enable full debug logging." library=SAP/jenkins-library stepName=nexusUpload
13:57:50  time="2020-04-27T11:57:49Z" level=info msg="[ERROR] " library=SAP/jenkins-library stepName=nexusUpload
13:57:50  time="2020-04-27T11:57:49Z" level=info msg="[ERROR] For more information about the errors and possible solutions, please read the following articles:" library=SAP/jenkins-library stepName=nexusUpload
13:57:50  time="2020-04-27T11:57:49Z" level=info msg="[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException" library=SAP/jenkins-library stepName=nexusUpload
13:57:50  time="2020-04-27T11:57:50Z" level=fatal msg="step execution failed" error="uploading artifacts for ID 'ire-obligatory-capacity-management-application' failed: failed to run executable, command: '[mvn -Dmaven.repo.local=s4hana_pipeline/maven_local_repo -Durl=http:''I've changed this'' -DgroupId=group.msg.ire -Dversion=1.0-2020-04-27T115014UTC_c9e7ac2efde27cc238da975d358cace514dee5e4 -DartifactId=ire-obligatory-capacity-management-application -Dfile=application/pom.xml -Dpackaging=pom -Dfiles=application/target/ire-obligatory-capacity-management-application.jar -Dclassifiers= -Dtypes=jar --batch-mode org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy-file]', error: running command 'mvn' failed: cmd.Run() failed: exit status 1" library=SAP/jenkins-library stepName=nexusUpload
13:57:50  time="2020-04-27T11:57:50Z" level=info msg=ire-obligatory-capacity-management-application library=SAP/jenkins-library stepName=nexusUpload
13:57:50  time="2020-04-27T11:57:50Z" level=info msg=group.msg.ire library=SAP/jenkins-library stepName=nexusUpload
13:57:50  time="2020-04-27T11:57:50Z" level=info msg=1.0-2020-04-27T115014UTC_c9e7ac2efde27cc238da975d358cace514dee5e4 library=SAP/jenkins-library stepName=nexusUpload
13:57:50  time="2020-04-27T11:57:50Z" level=info msg=ire-obligatory-capacity-management-application library=SAP/jenkins-library stepName=nexusUpload
13:57:50  time="2020-04-27T11:57:50Z" level=info msg=jar library=SAP/jenkins-library stepName=nexusUpload
[Pipeline] }
[Pipeline] // withCredentials
[Pipeline] }
13:57:50  $ docker stop --time=1 06599283deacaefcabaeb0a786ad4d13cb8858fa41e16e01d666c9aebd12dc7f
13:57:51  $ docker rm -f 06599283deacaefcabaeb0a786ad4d13cb8858fa41e16e01d666c9aebd12dc7f
[Pipeline] // withDockerContainer
[Pipeline] libraryResource
[Pipeline] echo
13:57:51  ----------------------------------------------------------
13:57:51  --- An error occurred in the library step: dockerExecute
13:57:51  ----------------------------------------------------------
13:57:51
13:57:51  The following parameters were available to the step:
13:57:51  ***
13:57:51  *** to show step parameters, set verbose:true in general pipeline configuration
13:57:51  *** WARNING: this may reveal sensitive information. ***
13:57:51  ***
13:57:51
13:57:51  The error was:
13:57:51  ***
13:57:51  hudson.AbortException: script returned exit code 1
13:57:51  ***
13:57:51
13:57:51  Further information:
13:57:51  * Documentation of library step dockerExecute: https://sap.github.io/jenkins-library/steps/dockerExecute/
13:57:51  * Source code of library step dockerExecute: https://github.com/SAP/jenkins-library/blob/master/vars/dockerExecute.groovy
13:57:51  * Library documentation: https://sap.github.io/jenkins-library/
13:57:51  * Library repository: https://github.com/SAP/jenkins-library/
13:57:51
13:57:51  ----------------------------------------------------------
13:57:51  --- End library step of: dockerExecute ---
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] libraryResource
[Pipeline] echo
13:57:51  ----------------------------------------------------------
13:57:51  --- An error occurred in the library step: nexusUpload
13:57:51  ----------------------------------------------------------
13:57:51
13:57:51  The following parameters were available to the step:
13:57:51  ***
13:57:51  *** to show step parameters, set verbose:true in general pipeline configuration
13:57:51  *** WARNING: this may reveal sensitive information. ***
13:57:51  ***
13:57:51
13:57:51  The error was:
13:57:51  ***
13:57:51  hudson.AbortException: script returned exit code 1
13:57:51  ***
13:57:51
13:57:51  Further information:
13:57:51  * Documentation of library step nexusUpload: https://sap.github.io/jenkins-library/steps/nexusUpload/
13:57:51  * Source code of library step nexusUpload: https://github.com/SAP/jenkins-library/blob/master/vars/nexusUpload.groovy
13:57:51  * Library documentation: https://sap.github.io/jenkins-library/
13:57:51  * Library repository: https://github.com/SAP/jenkins-library/
13:57:51
13:57:51  ----------------------------------------------------------
13:57:51  --- End library step of: nexusUpload ---

Hi Daniel,
after using the new docker image groupId and artifactId were correct determined.
Now I run into a new error during nexus deployment.
Thanks,
Jürgen
13:57:50  time="2020-04-27T11:57:49Z" level=info msg="[INFO] ------------------------------------------------------------------------" library=SAP/jenkins-library stepName=nexusUpload
13:57:50  time="2020-04-27T11:57:49Z" level=info msg="[INFO] Reactor Summary for ire-obligatory-capacity-management - Root 1.0-2020-04-27T115014UTC_c9e7ac2efde27cc238da975d358cace514dee5e4:" library=SAP/jenkins-library stepName=nexusUpload
13:57:50  time="2020-04-27T11:57:49Z" level=info msg="[INFO] " library=SAP/jenkins-library stepName=nexusUpload
13:57:50  time="2020-04-27T11:57:49Z" level=info msg="[INFO] ire-obligatory-capacity-management - Root .......... FAILURE [  0.263 s]" library=SAP/jenkins-library stepName=nexusUpload
13:57:50  time="2020-04-27T11:57:49Z" level=info msg="[INFO] ire-obligatory-capacity-management - Application ... SKIPPED" library=SAP/jenkins-library stepName=nexusUpload
13:57:50  time="2020-04-27T11:57:49Z" level=info msg="[INFO] ire-obligatory-capacity-management - Unit Tests .... SKIPPED" library=SAP/jenkins-library stepName=nexusUpload
13:57:50  time="2020-04-27T11:57:49Z" level=info msg="[INFO] ire-obligatory-capacity-management - Integration Tests SKIPPED" library=SAP/jenkins-library stepName=nexusUpload
13:57:50  time="2020-04-27T11:57:49Z" level=info msg="[INFO] ------------------------------------------------------------------------" library=SAP/jenkins-library stepName=nexusUpload
13:57:50  time="2020-04-27T11:57:49Z" level=info msg="[INFO] BUILD FAILURE" library=SAP/jenkins-library stepName=nexusUpload
13:57:50  time="2020-04-27T11:57:49Z" level=info msg="[INFO] ------------------------------------------------------------------------" library=SAP/jenkins-library stepName=nexusUpload
13:57:50  time="2020-04-27T11:57:49Z" level=info msg="[INFO] Total time:  1.851 s" library=SAP/jenkins-library stepName=nexusUpload
13:57:50  time="2020-04-27T11:57:49Z" level=info msg="[INFO] Finished at: 2020-04-27T11:57:49Z" library=SAP/jenkins-library stepName=nexusUpload
13:57:50  time="2020-04-27T11:57:49Z" level=info msg="[INFO] ------------------------------------------------------------------------" library=SAP/jenkins-library stepName=nexusUpload
13:57:50  time="2020-04-27T11:57:49Z" level=info msg="[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy-file (default-cli) on project ire-obligatory-capacity-management: Failed to deploy artifacts: Could not transfer artifact group.msg.ire:ire-obligatory-capacity-management-application:pom:1.0-2020-04-27T115014UTC_c9e7ac2efde27cc238da975d358cace514dee5e4 from/to remote-repository (I've changed this): Failed to transfer file I've changed this/group/msg/ire/ire-obligatory-capacity-management-application/1.0-2020-04-27T115014UTC_c9e7ac2efde27cc238da975d358cace514dee5e4/ire-obligatory-capacity-management-application-1.0-2020-04-27T115014UTC_c9e7ac2efde27cc238da975d358cace514dee5e4.pom with status code 401 -> [Help 1]" library=SAP/jenkins-library stepName=nexusUpload
13:57:50  time="2020-04-27T11:57:49Z" level=info msg="[ERROR] " library=SAP/jenkins-library stepName=nexusUpload
13:57:50  time="2020-04-27T11:57:49Z" level=info msg="[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch." library=SAP/jenkins-library stepName=nexusUpload
13:57:50  time="2020-04-27T11:57:49Z" level=info msg="[ERROR] Re-run Maven using the -X switch to enable full debug logging." library=SAP/jenkins-library stepName=nexusUpload
13:57:50  time="2020-04-27T11:57:49Z" level=info msg="[ERROR] " library=SAP/jenkins-library stepName=nexusUpload
13:57:50  time="2020-04-27T11:57:49Z" level=info msg="[ERROR] For more information about the errors and possible solutions, please read the following articles:" library=SAP/jenkins-library stepName=nexusUpload
13:57:50  time="2020-04-27T11:57:49Z" level=info msg="[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException" library=SAP/jenkins-library stepName=nexusUpload
13:57:50  time="2020-04-27T11:57:50Z" level=fatal msg="step execution failed" error="uploading artifacts for ID 'ire-obligatory-capacity-management-application' failed: failed to run executable, command: '[mvn -Dmaven.repo.local=s4hana_pipeline/maven_local_repo -Durl=http:''I've changed this'' -DgroupId=group.msg.ire -Dversion=1.0-2020-04-27T115014UTC_c9e7ac2efde27cc238da975d358cace514dee5e4 -DartifactId=ire-obligatory-capacity-management-application -Dfile=application/pom.xml -Dpackaging=pom -Dfiles=application/target/ire-obligatory-capacity-management-application.jar -Dclassifiers= -Dtypes=jar --batch-mode org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy-file]', error: running command 'mvn' failed: cmd.Run() failed: exit status 1" library=SAP/jenkins-library stepName=nexusUpload
13:57:50  time="2020-04-27T11:57:50Z" level=info msg=ire-obligatory-capacity-management-application library=SAP/jenkins-library stepName=nexusUpload
13:57:50  time="2020-04-27T11:57:50Z" level=info msg=group.msg.ire library=SAP/jenkins-library stepName=nexusUpload
13:57:50  time="2020-04-27T11:57:50Z" level=info msg=1.0-2020-04-27T115014UTC_c9e7ac2efde27cc238da975d358cace514dee5e4 library=SAP/jenkins-library stepName=nexusUpload
13:57:50  time="2020-04-27T11:57:50Z" level=info msg=ire-obligatory-capacity-management-application library=SAP/jenkins-library stepName=nexusUpload
13:57:50  time="2020-04-27T11:57:50Z" level=info msg=jar library=SAP/jenkins-library stepName=nexusUpload
[Pipeline] }
[Pipeline] // withCredentials
[Pipeline] }
13:57:50  $ docker stop --time=1 06599283deacaefcabaeb0a786ad4d13cb8858fa41e16e01d666c9aebd12dc7f
13:57:51  $ docker rm -f 06599283deacaefcabaeb0a786ad4d13cb8858fa41e16e01d666c9aebd12dc7f
[Pipeline] // withDockerContainer
[Pipeline] libraryResource
[Pipeline] echo
13:57:51  ----------------------------------------------------------
13:57:51  --- An error occurred in the library step: dockerExecute
13:57:51  ----------------------------------------------------------
13:57:51
13:57:51  The following parameters were available to the step:
13:57:51  ***
13:57:51  *** to show step parameters, set verbose:true in general pipeline configuration
13:57:51  *** WARNING: this may reveal sensitive information. ***
13:57:51  ***
13:57:51
13:57:51  The error was:
13:57:51  ***
13:57:51  hudson.AbortException: script returned exit code 1
13:57:51  ***
13:57:51
13:57:51  Further information:
13:57:51  * Documentation of library step dockerExecute: https://sap.github.io/jenkins-library/steps/dockerExecute/
13:57:51  * Source code of library step dockerExecute: https://github.com/SAP/jenkins-library/blob/master/vars/dockerExecute.groovy
13:57:51  * Library documentation: https://sap.github.io/jenkins-library/
13:57:51  * Library repository: https://github.com/SAP/jenkins-library/
13:57:51
13:57:51  ----------------------------------------------------------
13:57:51  --- End library step of: dockerExecute ---
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] libraryResource
[Pipeline] echo
13:57:51  ----------------------------------------------------------
13:57:51  --- An error occurred in the library step: nexusUpload
13:57:51  ----------------------------------------------------------
13:57:51
13:57:51  The following parameters were available to the step:
13:57:51  ***
13:57:51  *** to show step parameters, set verbose:true in general pipeline configuration
13:57:51  *** WARNING: this may reveal sensitive information. ***
13:57:51  ***
13:57:51
13:57:51  The error was:
13:57:51  ***
13:57:51  hudson.AbortException: script returned exit code 1
13:57:51  ***
13:57:51
13:57:51  Further information:
13:57:51  * Documentation of library step nexusUpload: https://sap.github.io/jenkins-library/steps/nexusUpload/
13:57:51  * Source code of library step nexusUpload: https://github.com/SAP/jenkins-library/blob/master/vars/nexusUpload.groovy
13:57:51  * Library documentation: https://sap.github.io/jenkins-library/
13:57:51  * Library repository: https://github.com/SAP/jenkins-library/
13:57:51
13:57:51  ----------------------------------------------------------
13:57:51  --- End library step of: nexusUpload ---

Somehow hidden, but I see Could not transfer artifact...with status code 401. Just to be sure, have you checked the credentials?

Hi Daniel,
yes, we have checked the credentials.
Regards
Marcus

Hi Daniel,
with V30 the credentials work.
Regards
Jürgen

It looks like the credentials are not passed to the nexusUpload step. We will try to investigate what the reason could be and come back to you.

I think I found the issue. Should be solved with: https://github.com/SAP/cloud-s4-sdk-pipeline/issues/32

Hi Daniel,
thanks for solving the issue!
Do you need to update the pipeline-lib to use v1.26.0 of piper?
With the current version I can see in the logs that v1.24.0 of piper is loaded which doesn't contain the fix.
Best regards
Jürgen

Hi @goeblj,
I've updated the library to v1.26.0, so in the master branch of the pipeline it should work now.
In general, we don't recommend to change the version of the "piper" library manually as there might be incompatible changes.
Looking forward to your feedback. Please let me know if we can close this issue.
Best,
Florian

Hi @fwilhe,
everything works fine again.
Thanks for your help and best regards,
Jürgen


Representation of SNN, k-means  clusters in Iris

How to represent SNN, k-means cluster using iris package as shown in enclosed figure

Closing due to inactivity. I encourage StackOverflow for these kinds of questions (perhaps wasn't an option at the time...).


Update Python OpenAI Library to Version 1

Description
This pull request updates our project's Python OpenAI library to version 1. The upgrade includes various improvements and bug fixes that enhance performance and reliability.
Changes

Updated openai package version in requirements.txt to openai >=1.0.
Adjusted code to align with changes in the OpenAI API, ensuring compatibility with the new version.
Tested all functionalities to ensure that existing features operate smoothly with the upgraded library.

Impact
Updating to version 1 helps our project stay up-to-date with the latest OpenAI features, including improved API responses and enhanced security measures. It also ensures compatibility with the latest enhancements and fixes provided by OpenAI.
Testing

All automated tests have been run and passed.
Manual testing was conducted to verify that the integration with Azure OpenAI services functions as expected.

@cnkang Thank you about pull requests. I will merge these changes.
I have manually tested the code you submitted to the pull request and confirmed that there are no issues.
Appreciate your valuable contribution.

@cnkang Thank you again! Looking forward to your future contributions.


youtube-dl: 2019.05.11 -> 2019.05.20

Motivation for this change
Update youtube-dl to the latest release.
https://github.com/ytdl-org/youtube-dl/releases/tag/2019.05.20
NOTE: Updates to youtube-dl should be backported, thanks!
Things done

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

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Assured whether relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

I can't reproduce the above issue. It builds and executes for me and downloading videos wasn't a problem.
Even ran the tests manually...

Because you used nix-review which made a nix-shell mixing python interpreter versions it causes that error.
If you were to execute just youtube-dl outside of that it should work properly.
❯ ./result/bin/youtube-dl "https://www.youtube.com/watch?v=O446XppZzXA"
[youtube] O446XppZzXA: Downloading webpage
[youtube] O446XppZzXA: Downloading video info webpage
[download] Destination: DíSA - New World Coming - Miss Peregrine's Home For Peculiar Children Trailer song-O446XppZzXA.f243.webm
[download] 100% of 2.19MiB in 00:01
[download] Destination: DíSA - New World Coming - Miss Peregrine's Home For Peculiar Children Trailer song-O446XppZzXA.f251.webm
[download] 100% of 2.75MiB in 00:01
[ffmpeg] Merging formats into "DíSA - New World Coming - Miss Peregrine's Home For Peculiar Children Trailer song-O446XppZzXA.webm"
Deleting original file DíSA - New World Coming - Miss Peregrine's Home For Peculiar Children Trailer song-O446XppZzXA.f243.webm (pass -k to keep)
Deleting original file DíSA - New World Coming - Miss Peregrine's Home For Peculiar Children Trailer song-O446XppZzXA.f251.webm (pass -k to keep)

backported in e1cd559f9b08b9ba4b295b35662140920d9d461a


Small improvements

Closing due to support being dropped for Discord.py as we move to Discord.js

I'll take these changes into the rewrite tho


fedora-backgrounds: init f35 to f38

Description of changes
Add missing versions of the Fedora background packages from Fedora 35 to 38 releases. Only tested the backgrounds on GNOME.

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.05 Release Notes (or backporting 22.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

@ofborg build fedora-backgrounds.f35 fedora-backgrounds.f36 fedora-backgrounds.f37 fedora-backgrounds.f38


Cache GOV.UK repos and revert only showing status:success PRs.

This caches the query which finds the GOV.UK repos to improve performance, and also reverts https://github.com/alphagov/bulk-merger/commit/ff91eaa0b1a3f079216523f909082b068b35e67e because it seems to have prevented PRs from appearing in the list.
For example: status:success vs non status:success

Is it possible that status:success checks for both review and passing tests?

@thomasalanlee looking at your examples, the PR shown is the only one with both criteria... 🤔

It was just a coincidence. Now I can see there's a new PR that doesn't have an approval 😉


Structure Inventory can't use elevations from terrain if terrain is not HDF.

This isn't selected for development, so I'm clearing my assignment.


[REFACTOR] Avoid computing samples eagerly in SimulationResults

Tickets addressed: N/A
Review: By commit
Merge strategy: Merge (no squash)

Description

This PR removes resourceSamples as a field on SimulationResults. Prior to this PR, this field was derived from realProfiles and discreteProfiles via the takeSamples method - upon calling the SimulationResults constructor, takeSamples would be called eagerly.
In typical usage, resourceSamples is unused - the simulation results are written to the database using the realProfiles and discreteProfiles directly. The only time it is used (outside of testing) is via the explicit resourceSamples hasura action.
This PR moves computation of resource samples out of the SimulationResults constructor, so that they can be computed when requested, but not by default.
I have not done any performance measurements to see whether or not this change is significant - nevertheless, I believe avoiding needless computations is generally a good thing.
Verification

I spun up a local Aerie deployment and checked that running simulations and viewing their results worked, and I also called the resourceSamples endpoint directly.
Documentation

No functional behavior has changed, so no documentation needs to be updated.
Future work

No future work

Looks fine, although seeing it appear in the mission models makes me wonder how often this calculation will be called per SimulationResults object. Would it be worth it to instead make resourceSamples a private field that is not assigned at construction, and have it accessed through a getter that assigns the output of takeSamples into it if resourceSamples is null? Then we only run takeSamples at most once per SimulationResults object.

If we expected this computation to happen multiple times, absolutely, I think caching it in a field would be a valid approach. 💯
As it stands, we've moved away from this method (it provides strictly less information than realProfiles and discreteProfiles do, while using more memory) - so we don't expect this method to get more use in the future. If I had my druthers, we'd remove this method entirely, but we're keeping the resourceSamples hasura action in the API as a convenience for clients that don't want to work with continuous profiles.

As it stands, we've moved away from this method (it provides strictly less information than realProfiles and discreteProfiles do, while using more memory) - so we don't expect this method to get more use in the future. If I had my druthers, we'd remove this method entirely, but we're keeping the resourceSamples hasura action in the API as a convenience for clients that don't want to work with continuous profiles.

So this refactor is setup for an eventual deprecation? If so, then I think I'm fine with making it the responsibility of whoever calls the public method to cache its return value.

So this refactor is setup for an eventual deprecation? If so, then I think I'm fine with making it the responsibility of whoever calls the public method to cache its return value.

When I brought up the possibility of deprecation, @patkenneally explained that we should keep the capability in case API clients want it, but that we should encourage people to use the continuous profiles directly. So - yes, it's "discouraged" if not exactly "deprecated for removal".

Personally, I'd like to see the resourceSamples code moved out of SimulationResults entirely. It looks like the only place where we access it outside of testing/development code is that API endpoint, and the computation doesn't really feel like the responsibility of SimulationResults anymore.

Personally, I'd like to see the resourceSamples code moved out of SimulationResults entirely

Done :+1: The sampling logic is now the responsibility of the GetSimulationResultsAction, which was the only client of this functionality. I inlined it into the getResourceSamples method.


Support cross-platform socket readiness notification

libuv supports this via uv_poll_t which is implemented here.  The implementation uses undocumented Windows internals, but this is an enabling technology for use with libraries such as libcurl and libssh2.

Previously discussed in #281.
Personally I would also like to see this - I maintain c-ares bindings which would benefit.  But apparently I haven't wanted this enough to find the time and enthusiasm to implement it...

Thanks for the report. I would need someone to provide a detailed proposal with the pros / cons to evaluate this better. I personally do not have the time to do so.


Added an option to let users define what workspaces to ignore.

Settings > Configuration > Bar > Workspaces > Ignored Workspaces
Takes a regex as input to define what workspaces to ignore.
If we want to ignore a scratchpad or special workspace (-99) we can define it as
-99
//or if multiple
(-99|-98)

closes #264
closes #198

Tested, it works wonderfully. I'll just merge this


Make tests build cacheable

Tests are not build cacheable. Running them twice in a row re-runs them. To reproduce:
git clone https://github.com/apollographql/apollo-kotlin
cd apollo-kotlin
git checkout 4824ae3bf53025a0b2b6290edb609647834f435c
# run tests a first time
./gradlew :intellij-plugin:test
# delete outputs
rm -rf intellij-plugin/build
# re-run tests
./gradlew :intellij-plugin:test
# tests are executed again

The second test invocation should reuse the cached results but instead the tests are re-run.
I'm suspecting it's because some of the input/output directories are shared between tasks or something like this? On some occasions, I have seen logs like this:
Caching disabled for task ':intellij-plugin:test' because:
  Gradle does not know how file 'build/idea-sandbox/system-test/log/idea.log' was created (output property 'System directory'). Task output caching requires exclusive access to output paths to guarantee correctness (i.e. multiple tasks are not allowed to produce output in the same location).

Other times, it was classpath.index being missing in one of the invocations.
Tests currently take ~1min so it's not the end of the world but would be nice to get those minutes back.

there could be changes in

testData files used in tests (e.g., highlighting)
any external systems (e.g., LSP)

that are impossible to track

testData files used in tests

We can track that manually:
tasks.withType<Test> {
  inputs.dir("testData").withPropertyName("testData").withPathSensitivity(PathSensitivity.RELATIVE)
}

any external systems (e.g., LSP)

Not overly familiar with LSP and/or other things. Is that something IntelliJ downloads at startup? If yes that could be an issue but maybe something that could be pinned/disabled using configuration?

testData directories could be located anywhere, or even generated at runtime
LSP server is just a sample for any external system that tests may depend on. Or e.g. some external linter that is called via ExternalAnnotator and many other things.

My superficial understanding of the IntelliJ IDE is that it's mostly an executable .jar and therefore self contained/predictable and ultimately cacheable?
I understand IntelliJ is highly customizable and as such could take inputs from "the internet" that are impossible to track but these customizations would not be important for our tests so feels like having a way to run the IDE without them for reproducable tests would be a win?

This is about what the actual tests of the plugin project do. We basically can't predict it or set "useful" defaults for caching.
Reference for test data: https://plugins.jetbrains.com/docs/intellij/test-project-and-testdata-directories.html

That's correct, but a breaking change for any plugin relying on the previous behaviour (or having non-default testData location(s)).


Weather App

Description
Fixed #(193)
Type of change
Please delete options that are not relevant.

[ ] Made a completely new web app.

Checklist:

[ ] My code follows the style guidelines(Clean Code) of this project
[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have created a helpful and easy to understand README.md
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added screenshots(if any) that prove my fix is effective or that my feature works

GitGuardian Security Checks is failing because I have used Open Weather API key which is kind of a unique one (my personal one).

GitGuardian Security Checks is failing because I have used Open Weather API key which is kind of a unique one (my personal one). There is as such no problem with the app.

Okay, no problem bro. Also, can u please add the steps to follow to get the key in the readme?

GitGuardian Security Checks is failing because I have used Open Weather API key which is kind of a unique one (my personal one). There is as such no problem with the app.

Okay, no problem bro. Also, can u please add the steps to follow to get the key in the readme?

Sure

User needs to create an account on https://openweathermap.org/ and then the user gets the API key.

@bislara I have added the steps to get API Key in README.md

@all-contributors please add prinsusinghal for code, doc

@bislara Please add "hacktoberfest-accepted" label to this.

Hey @prinsusinghal  My repo is already having hacktoberfest topic. So, this PR is automatically be considered for hacktoberfest. The review period would have already started for this PR. If there is still an issue. I am adding the hacktoberfest-accepted label to this PR. 🤟


Adding dotnet to PATH

I downloaded the zip file of dotnet 6 and want to know which folder(s) to add to the PATH. Thank you.

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

ID: 1eeab451-820f-de42-983e-4d0d5764f6ab
Version Independent ID: d11d0d14-8a03-50e4-5c00-9a4417ad4d0a
Content: Install .NET on Windows - .NET
Content Source: docs/core/install/windows.md
Product: .net
Technology: dotnet-installation
GitHub Login: @adegeo
Microsoft Alias: adegeo

Sorry for the delay, this issue slipped through the cracks. You would add the folder you extracted the contents of the zip file to the path.


Run without letsencrypt

Is there any way to run the docker container/ program without SSL (LetsEncrypt)?
I am trying to run this on my Docker Server at home, and use my existing Nginx Reverse Proxy (different box) to reverse proxy the traffic.

I updated the README with docs. Let me know if they work for you.

I think it was broken in an earlier build. Let me know if you have any issues with current build!


How to customize UiConfig with React/NextJs => Unrecognized value happening

Have you read the Tutorials? Yes
Have you read the FAQ and checked for duplicate open issues? Yes
What version of Shaka Player are you using? 4.3.5
Question
Hi everyone
have been 1 month since I started with Shaka Player. I am not sure if i'm doing something wrong but i cloned the nextjs example and did try to create some custom button to let me skip videos, as the docs shows.
Doesn't work!
So, would be great if someone help me do that using NextJs + React function-components instead class-components. Don't need to be anything complex just that let me better understand how it works.
for VoD I am using this uiConfigs =>
        const uiConfigs = {
            addSeekBar: true,
            controlPanelElements: [
                'play_pause',
                'mute',
                'volume',
                'time_and_duration',
                'spacer',
                'fullscreen',
                'quality',
                'picture_in_picture'
            ],
            volumeBarColors: {
                base: 'rgba(255, 255, 255, 0.3)',
                level: 'rgb(0, 96, 173)'
            },
            doubleClickForFullscreen: true,
            seekBarColors: {
                base: 'rgba(255, 255, 255, 0.3)',
                played: '#e93035',
                adBreaks: 'rgb(255, 204, 0)'
            },
            singleClickForPlayAndPause: true,
        }

Don't need to be 'skip', could be something easiest like that issue 'rewind 10' that let the user skip 10 seconds of the video.

Hi!
Please note that all the other framework/library examples mentioned in the docs are unofficial, They have been listed by the users. They could be buggy or outdated! Do take a look at versions before using or try creating issues in their respective repos.
For creating custom elements for Shaka Player, you would need to bind your own logic. Take a look at Creating custom elements and adding them to the UI
 this should be pretty much same in React!
As a side note, Also take a look at https://github.com/WINOFFRG/limeplay/ This Limeplay UI Library! I have been working on, This is currently in development but you can take a look at implementation to get an idea how this is all done natively in React.
Do ⭐ the library for updates, With upcoming updates you can easily create such custom buttons with just few lines of codes without worrying about underlying player logic! Example: Skip Button, Next Button ...

For creating custom elements for Shaka Player, you would need to bind your own logic. Take a look at Creating custom elements and adding them to the UI  this should be pretty much same in React!

I did exactly what the documentation ask to do and still, it doesn't work.
even if I do just an event that will throw a message in the console, the custom element never is created.
So i asked this question here to help me and others who want to understand how to make some element with reactJs

I see, Can you share more details like error message, or code snippets? That would help debug the issue.

I see, Can you share more details like error message, or code snippets? That would help debug the issue.

You can just follow the documentation and you will be able to see a console warning Unrecognized control panel element requested: your_custom_button and the button will not appear.


⚠ Bofrost.be has degraded performance

In b866bd2, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 1243 ms

Resolved: Bofrost.be performance has improved in b697ba6.


PowerToys Run feature doesn't run on startup

Microsoft PowerToys version
0.66.0
Installation method
GitHub
Running as admin
Yes
Area(s) with issue?
PowerToys Run
Steps to reproduce
The problem is when I turn on the laptop and use it for 5 min or immediately also the shortcut key i.e., alt + spacebar used for the PowerToys Run doesn't work I always have to open the app and then close it.
✔ Expected Behavior
The shortcut key should start working immediately/ as soon as the laptop starts.
❌ Actual Behavior
Need to open the app and close it only then the shortcut key works.
Other Software
No response

Hi,  to solve that you should open the Task manager, then select the startup tab and select enable for the powertoys app

I have enabled it but the problem is it everything pop's up when I turn on
the laptop. That shouldn't be the case.
On Thu, 23 Feb, 2023, 5:58 am Erriquez97, @.***> wrote:

Hi, to solve that you should open the Task manager, then select the
startup tab and select enable for the powertoys app
—
Reply to this email directly, view it on GitHub
https://github.com/microsoft/PowerToys/issues/24265#issuecomment-1441055432,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AZC33SUPSDWVWDSHBN3TWFDWY2VKLANCNFSM6AAAAAAVEQKSEQ
.
You are receiving this because you authored the thread.Message ID:
@.***>


TextInput does not change the font (using custom fonts)

Description
User has a button to put text in bold / not bold.
As my font is custom, I cannot use the "fontWeight" style, I have to change between font ('Rubik' for normal, 'Rubik-Bold' for bold)
The TextInput changes on first click, but not on second.
On the GIF, I put a <Text> Component that has same style -> Text component is working fine.

React Native version:
info Fetching system and libraries information...
System:
OS: Linux 4.15 Ubuntu 18.04.4 LTS (Bionic Beaver)
CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
Memory: 2.81 GB / 15.48 GB
Shell: 4.4.20 - /bin/bash
Binaries:
Node: 12.15.0 - /usr/bin/node
Yarn: Not Found
npm: 6.13.4 - /usr/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
Android SDK: Not Found
IDEs:
Android Studio: Not Found
Languages:
Java: Not Found
Python: 2.7.17 - /usr/bin/python
npmPackages:
@react-native-community/cli: Not Found
react: 16.13.1 => 16.13.1
react-native: 0.63.0 => 0.63.0
npmGlobalPackages:
react-native: Not Found
Steps To Reproduce
Code to reproduce.
App.js:
`

import React from 'react';
import Test from './Components/Test'
const App: () => React$Node = () => {
return (
<Test/>
);
};
export default App;

`
Components/Test.js:
`

import React from 'react'
import { View, Text, TextInput, Button, StyleSheet } from 'react-native'
class Test extends React.Component {
constructor(props) {
super(props)
this.state = {
bold: true,
}
}
render() {
return (
<View style={ styles.main_container }>
<Text
style={ [styles.text, { fontFamily: this.state.bold ? 'Rubik' : 'Rubik-Bold' }] }

Hello world</Text>
<TextInput
style={ [styles.text, { fontFamily: this.state.bold ? 'Rubik' : 'Rubik-Bold' }] }
placeholder="Hello world"
/>
<Button
title="Change font"
onPress={() => this.setState({ bold: !this.state.bold }) }
/>

)
}

}
const styles = StyleSheet.create({
main_container: {
flex: 1,
alignItems: 'center',
justifyContent: 'center',
},
text: {
fontSize: 22,
}
})
export default Test

`

Hello there 👋 this issue seems to have been inactive for the past few months. Because of this, it's likely that the issue is not a high priority anymore or it has been solved by OP; for these reasons, we'll close it.
But please, if it's actually still an issue with latest (RN64 at the time of writing) please comment below and we can reopen it or please send a Pull Request with a fix 😊


[Templates] Add special requirements on local file uninstall.

Summary
This adds a NOTE clarification block for local directory template uninstalls.
After an issue being unable to uninstall a template from a local directory, it was found that there were other requirements on the local path that weren't documented.
Addresses requirements discovered in dotnet/templating#1226.

@patridge,
Thanks for having already signed the Contribution License Agreement. Your agreement was validated by .NET Foundation. We will now review your pull request.
Thanks,
.NET Foundation Pull Request Bot

@mairaw Good catches! I updated the grammar and then added a minimally modified version of the same note to the dotnet new docs as well.


fixes #20 supporting char to string attribute conversion

Codecov Report

Merging #26 into master will increase coverage by 0.27%.
The diff coverage is 100%.

@@             Coverage Diff              @@
##             master      #26      +/-   ##
============================================
+ Coverage      91.6%   91.88%   +0.27%
- Complexity      630      641      +11
============================================
  Files            81       82       +1
  Lines          1716     1749      +33
  Branches         74       74
============================================
+ Hits           1572     1607      +35
+ Misses          111      110       -1
+ Partials         33       32       -1

Impacted Files
Coverage Δ
Complexity Δ

...serializationMethodsSerializerTypeSpecMutator.java
100% <100%> (+6.25%)
11 <0> (+1)
:arrow_up:

...cessor/schema/parse/CharacterTypeSchemaParser.java
100% <100%> (ø)
10 <10> (?)

.../dynodao/processor/schema/parse/SchemaParsers.java
100% <100%> (ø)
3 <0> (ø)
:arrow_down:

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 6ca6540...a8fb0d0. Read the comment docs.


Use correct dpi in MPLRenderer.get_size

Following on from #1140 it turns out the matplotlib equivalent to get the plot size in pixels is also incorrect using the wrong dpi.

I don't get why plot.state.dpi isn't always the right dpi value to use....why wouldn't it match self_or_cls.dpi if output by the same renderer?

Because the dpi is controlled by the renderer and the plotting classes don't fiddle with the default dpi value on the figure.

Ok. Is it ready to merge then?

Yes.


Add Chinese Translation to i18n

Also, updated BakaXL's screenshots.
If there is anything improper, please let me know.
Co-authored-by: XieXiLin<EMAIL_ADDRESS>Co-authored-by: Tuffy163<EMAIL_ADDRESS>Co-authored-by: FunnyShadow<EMAIL_ADDRESS>

Hi there, sorry it has taken almost a month to get to this. I appreciate that you took the time to do this; however, I'm afraid I'm going to have to reject this PR at this time. Currently, Modrinth is very anglophone-centric, and this is unlikely to change for a very long time. The site is only offered in English currently. Additionally, the API which the documentation is mostly intended for only has inputs and outputs in English.
If we were to have the docs translated, we would also want it hooked up to Crowdin. However, it's not something we're intending to have right now.
In the future, we recommend discussing large changes on our Discord before starting and before submitting a PR.
If you want to host a separate docs site translated to Chinese, you may do so. However, be sure to have it prominently noted that your documentation is unofficial, unreviewed, and unendorsed by Modrinth.


Edge.intersections not finding intersection at end of line

with BuildLine() as lineA:
    line1 = Line((0, 0), (0, 1200))
    line2 = Line((line1 @ 1), (600, 1200))
    line3 = Line((0, 0), (line2 @ 0.5))
    intersectionAB = line3.edge().intersections(line2.edge(), tolerance=0.1)
    print(f"intersectionAB: {intersectionAB}")

intersectionAB: []

The problem is very strange and is a result of how the common plane is calculated.  If the x_dir is calculated (and valid) the intersection isn't found. However, if the x_dir is determined automatically, the intersection is found.
intersectionAB: [Vector: (300.0, 1200.0, 0.0)]

The change is just to avoid explicitly setting the x_dir.


[FEATURE] Pass isDragging prop to Node

I would like to change the styling of my custom node whilst it's being actively dragged.

Just use https://github.com/wbkd/react-flow#prevent-dragging

Good point @justrhysism
it's released in v6.2.0


Remove FB tracking

https://github.com/potomak/tomatoes/commit/ab4cd8a3dced16360973f7c9e68a4065237f5579 introduced FB tracking. This was just a test and now, that these data is not used, we should remove this code.

Fixed.
#216


🚀 Initial commit

This is the code as I wrote it initially, so because of this it does (not yet) include support for Laravel 6.0

Feel free to merge the PR whenever.


Isolate Katana dependencies from the workspace

Allow us to more easily version cairo without needing to bump all other deps

Sweet! This is real nice for easily bringing in compiler updates ❤

Done in #1637.


Improved feature for Error enum struct

Summary
Improved initialisation and features provided by the Error enum struct in order to provide a better error handling in the library
Why
Currently there are few places in the code marked with a TODO mark about a better error handling. I hope this will help.

Thank you @fabiomassimo ! I'm going to look at it in details tomorrow :)

Any idea why I can not see this in current master?

Sorry, now I see.
Only one commit was merged. Got it!


Convert to 2x version.

Proposal:
We are using InfluxDb1x and planning to move to 2x.
Current behavior:
We are using InfluxDb1x and planning to move to 2x.
Desired behavior:
Describe what you want.
Alternatives considered:
Describe other solutions or features you considered.
Use case:
Do we have any documentation for this migraiton -  InfluxDb1x  to 2x.

@josephthanaraja Here is the documentation you're looking for: Upgrade from InfluxDB 1.x to 2.x


Document Koji integration more fully

Added some metadata-level documentation.

Coverage remained the same at 89.958% when pulling 25f4bbc6a78999c3d488c11e56c8e37abe2c9159 on koji-promote-metadata-doc into 24804d2c2f55837fe3911105d4068662d86b61f1 on master.

Coverage remained the same at 89.958% when pulling 25f4bbc6a78999c3d488c11e56c8e37abe2c9159 on koji-promote-metadata-doc into 24804d2c2f55837fe3911105d4068662d86b61f1 on master.

Updated.

Coverage remained the same at 89.931% when pulling 2ea510736a37eb91ecbaf517c2c2d6421d808d94 on koji-promote-metadata-doc into e17f9ed575479de4623ee5ca952ffe544bac91ab on master.

Updated.

Coverage remained the same at 89.931% when pulling ee57902d2ecd5e3536a4300296172386eade3f06 on koji-promote-metadata-doc into e17f9ed575479de4623ee5ca952ffe544bac91ab on master.

Coverage remained the same at 89.931% when pulling 392fed6a17e5c4d2268b3c95f4520329b8d0efcb on koji-promote-metadata-doc into e17f9ed575479de4623ee5ca952ffe544bac91ab on master.

Coverage remained the same at 89.931% when pulling 01e508bc2c84528d3b6c8860d204ee54738d3b31 on koji-promote-metadata-doc into e17f9ed575479de4623ee5ca952ffe544bac91ab on master.

Updated.

Coverage remained the same at 89.931% when pulling 326568cd8b707f99cb2595ecc645723d2c28afab on koji-promote-metadata-doc into e17f9ed575479de4623ee5ca952ffe544bac91ab on master.


Where can I find versions prior to 1.13?

Why have they been deleted?

They haven't been deleted, I don't serve builds in the first place. You can go to any commit in the history and build it, and if you're using jitpack as a Maven repository, you can specify a commit or tag as the version in your pom.

but why don't you do that?


Release: 1.0.0

A somewhat historic moment after years of waiting, endless bugfixes, debates about shallowMount, blood, sweat and tears is upon us - the greatly anticipated 1.0.0.
Some bugs will likely never be fixed due to flaws in the library design - we learned a lot and are using the lessons to improve with VTU next, which targets Vue 3.
Thanks to the 217 contributors who helped build VTU, and the countless others who reported bugs, wrote articles, or contributed in some other form to the library! Special thanks must go to @eddyerburgh for writing the original library and acting as the lead maintainer for most of its existence.
The goal of this PR is to ensure we cover bases before doing a 1.0.0, sometime in the next week or two. This means API changes will be less likely to happen, and if they do, happen via the RFC process. It doesn't mean development will stop - as long as people are using the library, we (all the OSS contributors) will continue to improve the library, fix bugs, and update the documentation.
TODO before 1.0.0

[ ] ensure all deprecation messages are up to date and accurate
[ ] important features/changes are backported from VTU next
[ ] write clear and concise release notes, detailing the "final" API and notable behaviors
[ ] clean up docs a little - make sure any references to old APIs or behaviors are gone, remove some un-needed info.
[ ] ??

Deprecation
I checked the deprecation messages, we have covered what makes sense. We do not offer the new mount option structure, so it does not make sense to emit about those. The one for findComponent is not correct, as it can also take querySelector strings, but it would make refactor more annoying. Then again, I am sure people would like to be able to target by it. Maybe we can ensure it only returns Component instances and never DOM nodes, and leave out the string check? find is fine as it is.
Features
I think with the addition of findComponentand returning promise from trigger we cover the most important features.
Release Notes
What do we want to mention here? What has changes since last release or? If so, that should be straight forward, though release notes are not a guide :/
About docs:

I tried to refactor the async related stuff, was a bit of a mess. The Guides section is a mess, things getting repeated over and over, without a clear path to follow.
It makes sense to keep 90% of that info, just move it around, make it consistent.
Also that hack with injecting sub-pages into guides page, causes some pages to lead to dead ends, but I dont have a better idea atm. Vuepress refuses to add none-renderable pages - https://github.com/vuejs/vuepress/issues/2101
I think we should have a mention about the old "sync"

RegardingfindComponent taking a string - it's pretty annoying to refactor, so I think we just leave it as-is. We can remove the fact it works with querySelector from the docs.
I guess release notes should be easy - you are right.
Improving docs is a big task... I guess we do it incrementally.  I think we need to be a bit brutal and cut a lot of it, but this probably can be done incrementally and not block 1.0.


⚠ Bofrost.at has degraded performance

In 452d77e, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 2552 ms

Resolved: Bofrost.at performance has improved in 1aadd5e after 10 minutes.


Fix live update demos

For some reason POST /_dash-update-component happens multiple times per update in these demos (e.g. https://github.com/plotly/dasher/blob/master/demo/live-updates.R). This could be an issue in dash-renderer, but perhaps I need to investigate how fiery/routr/httpuv resolves multiple scheduled requests.

We no longer have demos inside the dash package, and any issues with live demos should be raised in the gallery repo, so closing this one.


ETA for supporting ElasticSearch 1.6 and 1.7

Hello, we're currently thinking of upgrading our infrastructure and would like to use plugin with Elasticsearch 1.7. Any plans to support it? If so, do you have any estimation for it?

+1

1.7.x support is already in 2.1.1. :)


fix: 🐛 add missing environment variables for migration job

Merging, because it's simple.

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.


EmailDigest wrong E-Mail in logs

The current users email is used for the log of the EmailDigest agent.
The contents of recipient should be pasted into the log when its being scheduled.

EmailAgent is also affected, tough fixed in the reference above

@irfancharania fixed with #930.


Edit Source Code

Make it more accessible

The source code has been edited to reflect a cleaner and easier to read module