Wrong Font on Pdf-Export for Asciimath

When you do a pdf-export for the attached file you may recognize the different font that is used within the exported pdf file.
Example xml:
Bug-Pdf-Export-Asciimath.xml.zip
Expected:

Actually:

The reason is maybe a missing font on the export server. Maybe one of the fonts listed here https://github.com/Khan/KaTeX/tree/master/static/fonts
It would be nice if the desktop-app of draw.io does the export locally on my machine, because then I am able to decide which fonts are installed and thus are able to solve such problems on my own.
Thank you for such a great app so far.

The desktop app now performs the PDF export locally, so the font from the OS will be used. In the online version you can use Print to PDF as a workaround.
We would need to install custom fonts on the image export servers to make this work everywhere, that doesn't scale in terms of number of fonts and number of server (we can't image them because they are Macs).


Use better for tool for displaying whole space

https://twitter.com/ssiddhant_/status/1427335039281352737?s=20

https://xinhaoli74.github.io/posts/2020/05/TMAP/

Looks like it requires conda so cannot make dependency. Perhaps we can have jupyter demo instead of making it part of library.


potential omitted code in the class LinearAttention

Hi, I am reading the code of the gat re-implementation at model_utils.py, and I found that the activation self.leakyrelu of the class LinearAttention is not used in the forward process.
class LinearAttention(nn.Module):
    '''
    re-implement of gat's attention
    '''
    def __init__(self, in_dim = 300, mem_dim = 300):
        # in dim, the dimension of query vector
        super().__init__()
        self.linear = nn.Linear(in_dim, mem_dim)
        self.fc = nn.Linear(mem_dim * 2, 1)
        **self.leakyrelu = nn.LeakyReLU(1e-2)**

    def forward(self, feature, aspect_v, dmask):
        '''
        C feature/context [N, L, D]
        Q dep_tags_v          [N, D]
        mask dmask          [N, L]
        '''

        Q = self.linear(aspect_v) # (N, D)
        Q = Q.unsqueeze(1)  # (N, 1, D)
        Q = Q.expand_as(feature) # (N, L, D)
        Q = self.linear(Q) # (N, L, D)
        feature = self.linear(feature) # (N, L, D)

        att_feature = torch.cat([feature, Q], dim = 2) # (N, L, 2D)
        att_weight = self.fc(att_feature) # (N, L, 1)

        dmask = dmask.unsqueeze(2)  # (N, L, 1)
        att_weight = mask_logits(att_weight, dmask)  # (N, L ,1)

        attention = F.softmax(att_weight, dim=1)  # (N, L, 1)

        out = torch.bmm(feature.transpose(1, 2), attention)  # (N, D, 1)
        out = out.squeeze(2)
        # out = F.sigmoid(out)

        return out

Should there be some code like  att_weight = self.leakyrelu(att_weight) before applying the mask?

We have abandoned using LinearAttention in our R-GAT, but it's true that there should be a leakyrelu before applying masking. Thank you very much.


Conflicting information regarding extraction of audit logs

Hi,
I just want to mention a conflict with the official Azure AD B2C FAQ. There is a statement in the FAQ which states audit logs are only available in the portal and not via graph api. So I wonder now - can I retrieve the audit logs via Graph API like described here in step 3 of the Export customer data section. Or can I not - as described in B2C FAQ section "What reporting and auditing features does B2C provide".
Thanks for looking into this.

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

ID: aed26288-3be1-6b28-d732-26a9b73077a8
Version Independent ID: c75d575e-1186-26a3-bace-6ffb078f49cd
Content: Manage user data in Azure Active Directory B2C
Content Source: articles/active-directory-b2c/manage-user-data.md
Service: active-directory
GitHub Login: @davidmu1
Microsoft Alias: davidmu

@astaykov Thanks for the feedback! We are currently investigating and will update you shortly.

@astaykov Thanks for reporting. I also see conflict in document. This section also provides you an option to download the Azure AD B2C audit logs via the API. I am assigning it to content author to further investigate and make changes as necessary.

Removed the out-of-date information in the FAQ. Extracting information using Graph API is available. See this article for more information: https://docs.microsoft.com/en-us/azure/active-directory-b2c/active-directory-b2c-reference-audit-logs.
#please-close

@astaykov We will now close this issue. If there are further questions regarding this matter, please reopen it and we will gladly continue the discussion.


Passing commands to pip install

It looks like the current setup.py script does not support the --install-option arg.
https://stackoverflow.com/questions/18725137/how-to-obtain-arguments-passed-to-setup-py-from-pip-with-install-option

Nice, just today I was wondering if there's a canonical way to pass things through to the underlying cmake invocation. This could be it.

I've looked as this before.  Unfortunately install options don't work for both install and build_ext.   Which would limit us to just using install and develop for development workflow, but neither are particularly nice when you have both python and c++ code. The pattern I see from other repos that have both python and c++ code is to parse the args yourself in setup.py and then use environment variables to interact with pip.  We can add a --cmake-args command line arg and a CMAKE_ARGS environment variable

I ended up configuring the cmake build manually and then redirecting setup.py to use the existing directory instead of creating its own, for example:
python setup.py install build_ext --build-temp=build

For my needs this has all the flexibility I want, however might not be convenient enough for others.

Should be solved.


Dynamic date parsing

AlphaVantage (intermittently) passes different format (include seconds vs. not) for datetime for DAILY series.  I have ran into this issue twice in last 2 weeks, screenshot of the error provided below.  This change allows for dynamic detection of the format.

Why did you revert PR #30 in this PR?

I reverted as I was trying to separate the two commits. Otherwise, they are both good and working fine for me.  Thanks

On Sep 2, 2018, at 8:52 PM, Patrik Nygren<EMAIL_ADDRESS>wrote:
Why did you revert PR #30 in this PR?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.


Create concepts-parameters-variables.md

Clarify the difference between pipeline parameters and variables. I believe this information is missing from the documentation. Please review and feel free to change it. The ideia is to see this page under concepts, but I am not sure how to ensure that.

@soferreira
Microsoft authors and contributors need to make content contributions through the private repository so the content can be staged and validated by the current validation rules.
After you make your changes in the private repo, review the articles on staging, and fix any validation issues, you can add the sign-off comment to let PR reviewers know that the updates are ready to be merged.
Read about authors working in the public repo for more information.
If you need help getting set up to work in the private repo, see Set up Git repository locally for documentation.
We'll close this PR. Thank you.


ISSUE-545: Added tests for QueryProcessor

Describe your changes :

Issue #545
Added tests for QueryProcessor

Type of change :

[x] Improvement

Checklist:

[x] I have read the CONTRIBUTING document.
[x] I have performed a self-review of my own.
[x] I have tagged my reviewers below.
[ ] I have commented on my code, particularly in hard-to-understand areas.
[ ] My changes generate no new warnings.
[ ] I have added tests that prove my fix is effective or that my feature works.
[x] All new and existing tests passed.

Reviewers

Ingestion: @harshach @ayush-shah @pmbrull

Fixes #545

@ulixius9 can you try adding following queries https://docs.aws.amazon.com/redshift/latest/dg/r_Subquery_examples.html


Tooltip positioning doesn't work within a CSS container query

Bug report
Current Behavior
When a Tooltip (i.e. Root, Trigger, and Content) is placed inside a div with the CSS container-type: inline-size then the Tooltip Content isn't properly positioned (it's positioned way off to the side).
However if the Tooltip Content is placed inside a Tooltip Portal, then it is properly positioned adjacent to the Trigger.
Expected behavior
The Tooltip Content should always appear adjacent to the Trigger
Reproducible example
Example on StackBlitz
Suggested solution
Either have the Content positioning work with container queries regardless of whether the Tooltip Portal is used, or make it clear in the documentation that the Portal is required when  nesting inside CSS container queries.
Additional context

Your environment

Software
Name(s)
Version

Radix Package(s)
@radix-ui/react-tooltip
1.1.2

React
n/a
18.3.1

Browser
Chrome
129.0.6668.59

Assistive tech
n/a

Node
n/a
20 & 22

npm/yarn
npm &  pnpm

Operating System
Win
11

I believe this is related to this breaking change in chromium, which was the result of this change in the CSS specification. The change also broke I think every floating radix-ui element inside a container without using Portal.
I am not sure if the radix-ui team can do anything to fix this (because the change broke the usage, not the library), but you can try adding position: relative or contain: layout to your container element as mentioned in the linked comment.
Using Portal works, because it "moves out" the tooltip element from inside of the container and by default attaches it to the body.

This didn't work on my side, but moving the Content inside a Portal did.

but you can try adding position: relative or contain: layout to your container element as mentioned in the linked comment.

moving inside a portal also works for me!

Works for me
   <CardHeader
      className='flex flex-row items-center gap-2 flex-wrap @container/header space-y-0'
      style={{ contain: 'layout' }} <-----
    >
      <TooltipProvider>
        <Tooltip>
          <TooltipTrigger asChild>
            <Button variant='outline'>Hover</Button>
          </TooltipTrigger>
          <TooltipContent>

Add to library

          </TooltipContent>
        </Tooltip>
      </TooltipProvider>
      </CardHeader>
      ```

A solution should be provided by radix ui


Purchase / Gift Subscription Drops are not ignored

It seems like there is a new drop type. It requires users to Subscribe or Give a Sub, instead of watching participating channels for a certain amount of time.

The miner correctly doesn't mine this (since it's flagged as 0 minutes), but it still appears in the inventory list.

Hello,
The inventory view isn't supposed to ignore any drops - if a drop appears on the Inventory or Campaigns Twitch pages, then it's going to show up in the inventory view. Drops that have a watching requirement of 0 minutes aren't considered valid mining targets, so the miner just ignores them. Everything works as intended.
What issue are you experiencing, exactly?

Hmm, besides that, there are no other issues. I was under the assumption that the miner was trying to get a drop for which it has no chance (due to a non-watching requirement), but as I said (and you confirmed) the miner ignores mining it.
Is there a chance to have a toggle to show or hide 0 minute campaigns?

Hmm, an extra toggle might not be a bad idea, but I can also just make it so that if the sub-based drops is all the campaign contains, then it won't show in the inventory view. There would need to be at least one time-based drop for a campaign to be displayed. Is that enough for you?

That can work. Thanks. I'd appreciate it.
Just thought of this, but as an alternative, would it be possible to give the user an option to ignore a campaign? That way, it can also allow users to disregard specific campaigns, regardless of circumstances.

A feature like that is already tracked by #170.
I'll implement the suggestion from my previous comment soon, once I can find some time for it.


fix: update to eye v4.5.3

fix: update to eye v4.5.3

:tada: This PR is included in version 5.5.3 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release
v5.5.3

Your semantic-release bot :package::rocket:


Stealth for druid

Hello. I write macro for my druid
#showtooltip
/cast [stealth] Pounce; Rake
Looks like [stealth] not working

Are on the latest version?  I fixed an issue with that a few days ago.  Otherwise, what language is your game in?

Yes, the latest version. I play on turtle wow, on the English version. In the roid-macro version it works. But it's not in your version. And I would like to see a dynamic tooltip, as you have implemented

https://github.com/user-attachments/assets/856a1579-95ee-4674-a630-42af22e6c7e9
Oh -- do you have superwow?  For the most part, player buffs require that and I changed some things around because there were several different things looking up buffs and whatnot in different ways.  I wanted to simply it for myself for now at least.
If that's the issue, I'd recommend that and nampower if you want full functionality like range checking and better targeting support.

Nice. Thanks, i think this is the solution

Superwow or the changes?

Superwow. But it would be great if you implement the changes.  Maybe there are similar people

Understandable but both of those mods give a lot better functionality to vanilla so I'd still recommend them -- they're both linked on the README.  Just need to use something like Vanilla Fixes to start wow instead of the launcher.  In any case, I pushed the changes so it should work for you now regardless.
Please test and let me know if it's working for you.

Nah :(
/cast  [stealth] Pounce; Rake
Always use Rake

Well, that's what happens without sleep.  Should be working now, let me know.

Works great, thanks! Don't overwork yourself. Thanks again for your work

No worries, happy holidays.


KIF tests are not working due to the swipe back swizzle

@tariq235, I recommend you to exclude SwipeBack from your test target.


Restrict SSO login to a specific domain

For security purposes, we would like customize login to ensure that all users for a project log in via Google Auth, and that all users have emails from a specific domain.

This is fixed by https://github.com/medplum/medplum/pull/401


add reconcile resync period to cmd arg to avoid stall resource caching

What would you like to be added:
To add a cmd arg to kudo-manager to make the kudo-manager reconcile resync period configurable.
bin/manager [-sync-period]

Why is this needed:
The default operator generated by kubebuilder has the default SyncPeriod set to 10 hours which sometimes prevents kudo-manager to update instance resource as the cached instance object resourceversion might older than the latest in k8s cluster.
Issues we found:
kudo-controller-manager-0 manager 2019/12/02 06:31:21 PlanExecution: default/zk-kudo all phases of the plan deploy are ready
kudo-controller-manager-0 manager 2019/12/02 06:31:21 InstanceController: Error when updating instance state. Operation cannot be fulfilled on instances.kudo.dev "zk-kudo": the object has been modified; please apply your changes to the latest version and try again

Fixes #1123

Sorry for the added/deleted comments, I was unsure about our use of the go-logr/logr package which we're thinking about removing. The PR is good from my side now. I'll keep this open for a bit to give others a chance to review.


Getting softban frequently

###_ Expected Behavior
Bot keeps a low profile, running without softban, does not search stops too often.
Actual Behavior
pokestop_searching_too_often, followed by handle soft ban.
Your FULL config.json (remove your username, password, gmapkey and any other private info)
http://pastebin.com/raw/hwPz74Wh
Output when issue occurred
http://pastebin.com/raw/wNYy33CR
Steps to Reproduce
Run bot with provided config, run past 23 mins in the game.
Other Information
OS:
Windows 10
Branch:
dev
Git Commit:
d5059ed2adb569953a3e627b4141b2275b0b1bc5
Python Version:
2.7.12
Any other relevant files/configs (eg: path files)
http://pastebin.com/raw/8ccghA0X (optional: seem to happen with or without)

You're not opening the app on your phone while running the bot are you?

@Gobberwart Good question, but no. I don't log into game while running bot.

Are you running one account only?

@oralunal Running multiple, tried running just one from same ip for a while, doesn't seem to make a difference.  Do you think it's an IP ban?

It is probably an IP ban. Best botting is one account per IP. You can use maximum two accounts per IP but it is not healthy, too.
Please continue to discuss this on Slack Server.

Just an update, this doesn't seem to happen anymore after I got latest on dev


W2UI grid is really awesome plugin.Its displaying 1,00,000 records in seconds but its crashing on google chrome while displaying 1,50,000 records from json file using W2UI grid.Please help.

You should be used to load records
to move the scroll
http://w2ui.com/web/demos/#!combo/combo-9

Please provide a sample file, preferably on jsFiddle where the problem is demonstrated. I am not sure I understand what you mean.

{
"total": 1,
"records": [
{
"LEVEL":0,
"IID":"TEST",
"RID":"TEST",
"NAME":"TEST",
"OWNER":"FIELD2",
"USER":"TEST",
"LAST_MODIFIED_DATE":"TEST",
"PN1":"",
"PN2":"TEST",
"STATUS":"TEST",
"EXPORTED_TO":"TEST",
"LAST_EXPORTED_DATE":"26-Oct-2013 21:03",
"LAST_MODIFIED_DATE_1":"",
"LAST_MODIFIED_DATE_2":"26-Oct-2013 03:30",
"LAST_MODIFIED_DATE_3":"null",
"LAST_MODIFIED_DATE_4":"null"
},
{
"LEVEL":0,
"IID":"TEST",
"RID":"TEST",
"NAME":"TEST",
"OWNER":"FIELD2",
"USER":"TEST",
"LAST_MODIFIED_DATE":"TEST",
"PN1":"",
"PN2":"TEST",
"STATUS":"TEST",
"EXPORTED_TO":"TEST",
"LAST_EXPORTED_DATE":"26-Oct-2013 21:03",
"LAST_MODIFIED_DATE_1":"",
"LAST_MODIFIED_DATE_2":"26-Oct-2013 03:30",
"LAST_MODIFIED_DATE_3":"null",
"LAST_MODIFIED_DATE_4":"null"
},
]

}
This is the sample Json file.
It will have around 2,00,000 records similar to this .
    $('#myGrid').w2grid({
        name: 'grid',
        show: {
            toolbar: true,
            footer: true,
        },
        method: 'GET',
        columns: [{
            field: 'LEVEL',
            caption: 'Level',
            size: '30%',
            sortable: true
        }, {
            field: 'IID',
            caption: 'IID',
            size: '120px',
            hidden: true
        },

        ]
    });
    w2ui['grid'].load('abc.json');

Right now we are just fetching 2 properties for testing but it will be having 30 to 40 properties with more than 2,00,000 records.
We even tried infinite scroll option as suggested by chalchis but it is not working.
Please help.

So you are trying to load in the browser a JSON file with over 1 Million data rows (not generate like http://w2ui.com/web/demos/#!combo/combo-4 but load it) ?

We even tried infinite scroll option as suggested by chalchis but it is not working.

What is not working? What errors do you encounter?
From our trials, the only way to let the user scroll/filter/show/hide/highlight quickly over more 1 Million rows is to use this this infinite scroll functionality.
Of course,the serverside implementation for the infinite scroll needs to be fast too.

Thank you for the immediate reply:)
When we implemented infinite scroll,initially it is displaying some set of records but as we scroll down,it is displaying blank table.
We are not generating records at runtime.We want to load it from existing file.
Can it be because of the json file size?
Because json file with 1,50,000 records is around 5 GB in size as there are many attributes for the each record.

When we implemented infinite scroll,initially it is displaying some set of records but as we scroll down,it is displaying blank table.

Was the server responding fast enough to the consequent requests ?

Can it be because of the json file size?

I think so. Let's see: you make an AJAX request that tries to load 5GB of raw json data in the Browser (in it's memory) than the raw data is transformed in a javascript "data" object structure (e.g. js array of objects) (also in memory), and then if everything still works, w2ui tries to render a part of it.
You can try with much smaller JSON files and see how is increasing the browser memory usage by increasing the JSON file size.

Buffered scroll is showing same behavior for the small file also. But without it,we are able to display upto 1,00,000 records. Not more than that.
If it is because of the file size,is there any other functionality of W2UI grid which we can use?
Thank you for the help.

If it is because of the file size,is there any other functionality of W2UI grid which we can use?

Infinite Scroll should solve your problem. You just need to implement the server part to be fast enough.

my code for scroll in the grid
´´´javascript
jQuery('#main').w2grid({
name: 'gridusuarios',
autoLoad: false,
limit: 100,
url:'/usuarios/mod_lista',
header: 'Lista de usuarios del sistema',
multiSelect: false,
reorderColumns: false,
msgRefresh: 'cargando datos...',
show: {
header: true,
footer: true,
toolbar: true,
toolbarReload: false,
toolbarColumns: false,
toolbarSearch: false,
toolbarAdd: false,
toolbarDelete: false,
toolbarSave: false,
columnHeaders: true,
lineNumbers: true,
selectColumn: false,
expandColumn: false
},
fixedBody: true,
columns: [
{ field: 'recid', caption: 'keygrid', size: '100px', hidden: true },
{ field: 'keyuser', caption: 'key', size: '100px', hidden: true },
{ field: 'icon', caption: '', size: '25px'},
{ field: 'stus', caption: 'Estatus', size: '80px' },
{ field: 'username', caption: 'Matricula', size: '150px' },
{ field: 'nomuser', caption: 'Nombre completo', size: '600px'},
{ field: 'roluser', caption: 'Rol asignado', size: '210px' },
{ field: 'proceso', caption: 'Proceso', size: '100px', hidden: true },
{ field: 'facceso', caption: 'Ultimo acceso', size: '50%' },
],
onLoad: function(target, eventData)
{
var serverJSON = jQuery.parseJSON(eventData.xhr.responseText);
            //console.log(serverJSON.status_respuesta);

            if (serverJSON.status_respuesta === 'false')
            {
                //dialogo.dialogo_error_recurso(serverJSON.mensaje_respuesta);
                //preguntar el tipo
                if (serverJSON.tipo_error === 'query')
                {
                    //mostramos el mensaje del dialogo de la respuesta
                    dialogo.dialogo_error_ejecucion('<fieldset id="zonamensajes" style="max-height: 300px;">'+serverJSON.mensaje_respuesta+'</fieldset>');
                }
                else
                {
                    //preguntar el tipo
                    if (serverJSON.tipo_error === 'accion')
                    {
                        //mostramos el mensaje del dialogo de la respuesta
                        dialogo.dialogo_error_accion('<fieldset id="zonamensajes" style="max-height: 300px;">'+serverJSON.mensaje_respuesta+'</fieldset>');
                    }
                    else
                    {
                    	//mostramos el mensaje del dialogo de la respuesta
                    	dialogo.dialogo_error_recurso('<fieldset id="zonamensajes" style="max-height: 300px;">'+serverJSON.mensaje_respuesta+'</fieldset>');
                    }
                }
            }
            else
            {
            	if (serverJSON.tipo_respuesta === 'login')
            	{
            		dialogo.dialogo_error_recurso(serverJSON.mensaje_respuesta);

            		setTimeout(function(){window.location.replace('/');},1);
            	}
            }
        },
        onKeydown: function(event)
        {
        	//si es 13 es un enter
        	if (event.originalEvent.keyCode === 13)
        	{
        		//emular click al boton
        		jQuery('#btn_modal_editusuario').trigger("click");
	        }
	    }
	});

code in el server from url:'/usuarios/mod_lista',
for example php

´´´php
public function modusuarios_lista()
{
//var send for w2ui
$item_row = $this->input->post('offset', TRUE);
//total
$total_usuarios = $this->usuarios_modelo->total_usuarios();

$lista = $this->usuarios_modelo->get_usuarios($item_row);

//json format
				$resultadoJson = array(
									"status_respuesta" 	=> "true",
									"status"			=> "success",//parametro del grid
                					"mensaje_respuesta" => "correcto.",
									"total" 			=> $total_usuarios,//parametro del grid
									"header" 			=> "Listado de usuarios del sistema (".$total_usuarios.")",//parametro del gri
									"records" 			=> $datos_usuarios//parametro del grid
								);

				echo json_encode($resultadoJson);

}

´´´

Thank you all for the help.
While implementing infinite scroll.it is displaying some set of records initially but it displays blank table as I scroll down.
I have written same code as http://w2ui.com/web/demos/#!combo/combo-9
Just changed the url field as below:
url : 'abc.json'
Its working really great for 1,00,000 records.Just need to make it work for some more data :(
Thank you in advance.

As it was already mentioned in the thread, it is unwise to load entire million records into the browser at the same time as it will consume all of the computer's memory (you even said each record was big). The example with a million records was more a proof of concept to see if it can be done. Read http://w2ui.com/web/blog/7/JavaScript-Grid-with-One-Million-Records (if you haven't already). At that much records everything starts to be slow: search, sort, etc. You should use a DB that has indexes then sort/search can be fast  and you should implement server side infinite scroll.
@chalchis and @hansgru thanks for answering this post. I think I have nothing more to add. Since it is not a bug, I am closing this thread.


Fixed width font for console output and logs

It would be super cool if we could use a fixed width font for console output and logs.
Also, this would be very helpful for the editor, too, since editing and indenting XML with a proportional font is not much fun.

@rhuss I think we have this now?


Metric name was incorrect

@joelhulen : Thanks for your contribution! The author, @sharonlo101, has been notified to review your proposed change.

#sign-off


Need down/down (space character) for semaphore decoder

Need down/down (space character) for semaphore decoder

Can you clarify a bit for the use case? You can insert a space by hitting next without a valid combination selected.

When entering this
[image: image.png]
in the semaphore click-on-the position, there is no way to enter the third,
fourth, or sixth character.  Would be nice if puzztool had a way to enter
that character and tell me that it is a space, since I don't have that
memorized.
On Thu, Nov 14, 2019 at 7:38 PM Kyle Farnung<EMAIL_ADDRESS>wrote:

Can you clarify a bit for the use case? You can insert a space by hitting
next without a valid combination selected.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/puzztool/puzztool/issues/136?email_source=notifications&email_token=ANY3JLAFNX7PN6HSRSIWDNDQTYKTJA5CNFSM4JNVBGUKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEEEGGTI#issuecomment-554197837,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ANY3JLD7AUQ7W4NY57Q2G5LQTYKTJANCNFSM4JNVBGUA
.

I don’t know of a good way to do it at the moment other than to just have it default to the “rest” position if nothing is selected. It currently has no way to choose the same position twice.

Makes sense.  Husband just told me to go ahead and submit it as feedback,
so I did.

AB

On Thu, Nov 14, 2019 at 7:47 PM Kyle Farnung<EMAIL_ADDRESS>wrote:

I don’t know of a good way to do it at the moment other than to just have
it default to the “rest” position if nothing is selected. It currently has
no way to choose the same position twice.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/puzztool/puzztool/issues/136?email_source=notifications&email_token=ANY3JLG2RWW5CYHOQU3AWWLQTYLVXA5CNFSM4JNVBGUKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEEEGVCA#issuecomment-554199688,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ANY3JLF3MNQRVBGABMWPVITQTYLVXANCNFSM4JNVBGUA
.

Totally fair, just wanted to understand the context. Rest/space doesn’t come up often.


GCE metadata name doesn't resolve in container

In v0.15.0 on GKE, containers had access to the GCE metadata service at http://metadata. On a v0.17.0 cluster, metadata does not resolve:
$ curl "http://metadata/computeMetadata/v1/instance/service-accounts/default/token" -H "Metadata-Flavor: Google"
curl: (6) Could not resolve host: metadata

The link-local address works fine in the container:
$ curl "http://<IP_ADDRESS>/computeMetadata/v1/instance/service-accounts/default/token" -H "Metadata-Flavor: Google"
"access_token":...

A number of tools rely on the metadata name resolving to access service accounts, etc.
The name resolves fine on the GCE host.

Qualifying the name also works:
curl "http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/default/token" -H "Metadata-Flavor: Google"
"access_token";...

/cc @thockin

FWIW http://metadata/ is hardcoded into the Google API client for Java (haven't checked other languages), so any app using that and relying on service accounts is impacted.

I can get to metadata from my current cluster (which is about 5 days old)
# docker exec -ti bcb88c390bfa sh
/ # cat /etc/resolv.conf
nameserver <IP_ADDRESS>
nameserver <IP_ADDRESS>
nameserver <IP_ADDRESS>
search default.cluster.local default.svc.cluster.local svc.cluster.local
cluster.local c.thockin-dev.internal.<PHONE_NUMBER>18.google.internal.
google.internal.
/ # ping metadata
PING metadata (<IP_ADDRESS>): 56 data bytes
64 bytes from <IP_ADDRESS>: seq=0 ttl=64 time=0.038 ms
64 bytes from <IP_ADDRESS>: seq=1 ttl=64 time=0.042 ms
^C
--- metadata ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 0.038/0.040/0.042 ms
/ #

On Tue, May 19, 2015 at 5:12 PM, Evan Brown<EMAIL_ADDRESS>wrote:

FWIW http://metadata/ is hardcoded into the Google API client for Java
(haven't checked other languages), so any app using that and relying on
service accounts is impacted.
—
Reply to this email directly or view it on GitHub
https://github.com/GoogleCloudPlatform/kubernetes/issues/8512#issuecomment-103702548
.

@thockin this is a GKE cluster I created today. Just created another ~2 minutes ago, same result:
Creating the GKE Cluster:
CLUSTER_NAME=mdtester
NUM_NODES=1
MACHINE_TYPE=g1-small
API_VERSION=0.17.0

gcloud alpha container clusters create ${CLUSTER_NAME} \
  --num-nodes ${NUM_NODES} \
  --machine-type ${MACHINE_TYPE} \
  --cluster-api-version ${API_VERSION} \
  --scopes "https://www.googleapis.com/auth/devstorage.full_control" \
           "https://www.googleapis.com/auth/projecthosting"

Tools on my workstation:
$ gcloud components update preview
All components are up to date.

$ kubectl version
Client Version: version.Info{Major:"0", Minor:"16", GitVersion:"v0.16.1", GitCommit:"b933dda5369043161fa7c7330dfcfbc4624d40e6", GitTreeState:"clean"}
Server Version: version.Info{Major:"0", Minor:"17", GitVersion:"v0.17.0", GitCommit:"82f8bdac06ddfacf493a9ed0fedc85f5ea62ebd5", GitTreeState:"clean"}

On node:
evanbrown@k8s-mdtester-node-1:~$ sudo bash
root@k8s-mdtester-node-1:/home/evanbrown# docker ps
CONTAINER ID        IMAGE                                                  COMMAND                CREATED              STATUS              PORTS               NAMES
d1de71de8b9a        gcr.io/cloud-solutions-images/nginx-ssl-proxy:latest   "/bin/sh -c ./start.   50 seconds ago       Up 47 seconds                           k8s_nginx-ssl-proxy.22441003_nginx-ssl-proxy-7u7uh_default_9c82b564-fe8f-11e4-845f-42010af01d9a_b174af7a
f6a34bf6e2ee        gcr.io/google_containers/pause:0.8.0                   "/pause"               About a minute ago   Up About a minute                       k8s_POD.e4cc795_jenkins-agent-czbes_default_9daa9258-fe8f-11e4-845f-42010af01d9a_a96641ed
8324df574b26        gcr.io/google_containers/pause:0.8.0                   "/pause"               About a minute ago   Up About a minute                       k8s_POD.b72e170c_jenkins-leader-gnebq_default_9d16d691-fe8f-11e4-845f-42010af01d9a_123c0387
10d8e2e6e6a8        gcr.io/google_containers/pause:0.8.0                   "/pause"               About a minute ago   Up About a minute                       k8s_POD.605b1ae5_nginx-ssl-proxy-7u7uh_default_9c82b564-fe8f-11e4-845f-42010af01d9a_3d84c97c
b5e81c0e3a3a        gcr.io/google_containers/skydns:2015-03-11-001         "/skydns -machines=h   About a minute ago   Up About a minute                       k8s_skydns.cd47cc92_kube-dns-lmn6f_default_776bdb99-fe8f-11e4-82e2-42010af01d9a_52f85030
c7124b4dac50        gcr.io/google_containers/kube2sky:1.4                  "/kube2sky -domain=k   About a minute ago   Up About a minute                       k8s_kube2sky.87b54c53_kube-dns-lmn6f_default_776bdb99-fe8f-11e4-82e2-42010af01d9a_71c23a7f
bbf319e174d0        gcr.io/google_containers/etcd:2.0.9                    "/usr/local/bin/etcd   About a minute ago   Up About a minute                       k8s_etcd.13594ee7_kube-dns-lmn6f_default_776bdb99-fe8f-11e4-82e2-42010af01d9a_ba9cfac8
22ce1c0b0c8c        gcr.io/google_containers/pause:0.8.0                   "/pause"               About a minute ago   Up About a minute                       k8s_POD.8fdb0e41_kube-dns-lmn6f_default_776bdb99-fe8f-11e4-82e2-42010af01d9a_11a56c63
26949dfb38f7        gcr.io/google_containers/pause:0.8.0                   "/pause"               2 minutes ago        Up 2 minutes                            k8s_POD.e4cc795_fluentd-cloud-logging-k8s-mdtester-node-1_default_e7a73ce4931dc175ddc463501188a765_00ec948d

root@k8s-mdtester-node-1:/home/evanbrown# docker exec -ti d1de71de8b9a sh
# ping metadata
ping: unknown host

# ping metadata.google.internal
PING metadata.google.internal (<IP_ADDRESS>): 48 data bytes
56 bytes from <IP_ADDRESS>: icmp_seq=0 ttl=254 time=0.335 ms
56 bytes from <IP_ADDRESS>: icmp_seq=1 ttl=254 time=1.369 ms

I tried this on a GKE cluster that I created today.
robertbailey@k8s-robertbailey-testing-node-3:~$ sudo docker run -it ubuntu
Unable to find image 'ubuntu:latest' locally
Pulling repository ubuntu
07f8e8c5e660: Download complete
e9e06b06e14c: Download complete
a82efea989f9: Download complete
37bea4ee0c81: Download complete
Status: Downloaded newer image for ubuntu:latest
root@b41a2b672f3b:/# ping metadata
PING metadata.google.internal (<IP_ADDRESS>) 56(84) bytes of data.
64 bytes from metadata.google.internal (<IP_ADDRESS>): icmp_seq=1 ttl=254 time=0.200 ms
64 bytes from metadata.google.internal (<IP_ADDRESS>): icmp_seq=2 ttl=254 time=0.359 ms
64 bytes from metadata.google.internal (<IP_ADDRESS>): icmp_seq=3 ttl=254 time=0.221 ms
64 bytes from metadata.google.internal (<IP_ADDRESS>): icmp_seq=4 ttl=254 time=0.232 ms
64 bytes from metadata.google.internal (<IP_ADDRESS>): icmp_seq=5 ttl=254 time=0.136 ms
64 bytes from metadata.google.internal (<IP_ADDRESS>): icmp_seq=6 ttl=254 time=0.200 ms
64 bytes from metadata.google.internal (<IP_ADDRESS>): icmp_seq=7 ttl=254 time=0.263 ms
^C
--- metadata.google.internal ping statistics ---
7 packets transmitted, 7 received, 0% packet loss, time 5997ms
rtt min/avg/max/mdev = 0.136/0.230/0.359/0.064 ms

Have you tried this from within an image other than gcr.io/cloud-solutions-images/nginx-ssl-proxy:latest?

cat /etc/resolv.conf from within the container?
On Tue, May 19, 2015 at 6:36 PM, Evan Brown<EMAIL_ADDRESS>wrote:

@thockin https://github.com/thockin this is a GKE cluster I created
today. Just created another ~2 minutes ago, same result:
Creating the GKE Cluster:
CLUSTER_NAME=mdtester
NUM_NODES=1
MACHINE_TYPE=g1-small
API_VERSION=0.17.0
gcloud alpha container clusters create ${CLUSTER_NAME}
--num-nodes ${NUM_NODES}
--machine-type ${MACHINE_TYPE}
--cluster-api-version ${API_VERSION}
--scopes "https://www.googleapis.com/auth/devstorage.full_control"
"https://www.googleapis.com/auth/projecthosting"
Tools on my workstation:
$ gcloud components update preview
All components are up to date.
$ kubectl version
Client Version: version.Info{Major:"0", Minor:"16", GitVersion:"v0.16.1", GitCommit:"b933dda5369043161fa7c7330dfcfbc4624d40e6", GitTreeState:"clean"}
Server Version: version.Info{Major:"0", Minor:"17", GitVersion:"v0.17.0", GitCommit:"82f8bdac06ddfacf493a9ed0fedc85f5ea62ebd5", GitTreeState:"clean"}
On node:
evanbrown@k8s-mdtester-node-1:~$ sudo bash
root@k8s-mdtester-node-1:/home/evanbrown# docker ps
CONTAINER ID        IMAGE                                                  COMMAND                CREATED              STATUS              PORTS               NAMES
d1de71de8b9a        gcr.io/cloud-solutions-images/nginx-ssl-proxy:latest   "/bin/sh -c ./start.   50 seconds ago       Up 47 seconds                           k8s_nginx-ssl-proxy.22441003_nginx-ssl-proxy-7u7uh_default_9c82b564-fe8f-11e4-845f-42010af01d9a_b174af7af6a34bf6e2ee        gcr.io/google_containers/pause:0.8.0                   "/pause"               About a minute ago   Up About a minute                       k8s_POD.e4cc795_jenkins-agent-czbes_default_9daa9258-fe8f-11e4-845f-42010af01d9a_a96641ed8324df574b26        gcr.io/google_containers/pause:0.8.0                   "/pause"               About a minute ago   Up About a minute                       k8s_POD.b72e170c_jenkins-leader-gnebq_default_9d16d691-fe8f-11e4-845f-42010af01d9a_123c038710d8e2e6e6a8        gcr.io/google_containers/pause:0.8.0                   "/pause"               About a minute ago   Up About a minute                       k8s_POD.605b1ae5_nginx-ssl-proxy-7u7uh_default_9c82b564-fe8f-11e4-845f-42010af01d9a_3d84c97cb5e81c0e3a3a        gcr.io/google_containers/skydns:2015-03-11-001         "/skydns -machines=h   About a minute ago   Up About a minute                       k8s_skydns.cd47cc92_kube-dns-lmn6f_default_776bdb99-fe8f-11e4-82e2-42010af01d9a_52f85030
c7124b4dac50        gcr.io/google_containers/kube2sky:1.4                  "/kube2sky -domain=k   About a minute ago   Up About a minute                       k8s_kube2sky.87b54c53_kube-dns-lmn6f_default_776bdb99-fe8f-11e4-82e2-42010af01d9a_71c23a7fbbf319e174d0        gcr.io/google_containers/etcd:2.0.9                    "/usr/local/bin/etcd   About a minute ago   Up About a minute                       k8s_etcd.13594ee7_kube-dns-lmn6f_default_776bdb99-fe8f-11e4-82e2-42010af01d9a_ba9cfac8
22ce1c0b0c8c        gcr.io/google_containers/pause:0.8.0                   "/pause"               About a minute ago   Up About a minute                       k8s_POD.8fdb0e41_kube-dns-lmn6f_default_776bdb99-fe8f-11e4-82e2-42010af01d9a_11a56c63
26949dfb38f7        gcr.io/google_containers/pause:0.8.0                   "/pause"               2 minutes ago        Up 2 minutes                            k8s_POD.e4cc795_fluentd-cloud-logging-k8s-mdtester-node-1_default_e7a73ce4931dc175ddc463501188a765_00ec948d
root@k8s-mdtester-node-1:/home/evanbrown# docker exec -ti d1de71de8b9a sh# ping metadata
ping: unknown host
ping metadata.google.internal
PING metadata.google.internal (<IP_ADDRESS>): 48 data bytes
56 bytes from <IP_ADDRESS>: icmp_seq=0 ttl=254 time=0.335 ms
56 bytes from <IP_ADDRESS>: icmp_seq=1 ttl=254 time=1.369 ms
—
Reply to this email directly or view it on GitHub
https://github.com/GoogleCloudPlatform/kubernetes/issues/8512#issuecomment-103715372
.

Ahh, ubuntu and busybox work. Two images I've been using on GKE 0.15.0 are breaking. Frak. I'll spin up a 0.15.0 cluster locally and confirm they work there (they were working on 0.15.0 on GKE early last week.)
/etc/resolv.conf is:
nameserver <IP_ADDRESS>
nameserver <IP_ADDRESS>
nameserver <IP_ADDRESS>
search default.kubernetes.local default.svc.kubernetes.local svc.kubernetes.local kubernetes.local c.your-new-project.internal.<PHONE_NUMBER>71.google.internal. google.internal.

Is one of those your actual DNS service?  The search path look splausible.
I don't know why it would be failing.
On Tue, May 19, 2015 at 9:08 PM, Evan Brown<EMAIL_ADDRESS>wrote:

Ahh, ubuntu and busybox work. Two images I've been using on GKE 0.15.0 are
breaking. Frak. I'll spin up a 0.15.0 cluster locally and confirm they work
there (they were working on 0.15.0 on GKE early last week.)
/etc/resolv.conf is:
nameserver <IP_ADDRESS>
nameserver <IP_ADDRESS>
nameserver <IP_ADDRESS>
search default.kubernetes.local default.svc.kubernetes.local svc.kubernetes.local kubernetes.local c.your-new-project.internal.<PHONE_NUMBER>71.google.internal. google.internal.
—
Reply to this email directly or view it on GitHub
https://github.com/GoogleCloudPlatform/kubernetes/issues/8512#issuecomment-103749213
.

I haven't touched /etc/resolv.conf in either image. Here's output of docker inspect:
"HostConfig": {
        ...
        "Dns": [
            "<IP_ADDRESS>",
            "<IP_ADDRESS>",
            "<IP_ADDRESS>"
        ],
        "DnsSearch": [
            "default.kubernetes.local",
            "default.svc.kubernetes.local",
            "svc.kubernetes.local",
            "kubernetes.local",
            "c.your-new-project.internal.",
            "297725298471.google.internal.",
            "google.internal."
        ],

This is what I used to create the controller (the image is public):
{
  "kind": "ReplicationController",
  "apiVersion": "v1beta3",
  "metadata": {
    "name": "nginx-ssl-proxy",
    "labels": {
      "name": "nginx", "role": "ssl-proxy"
    }
  },
  "spec": {
    "replicas": 1,
    "selector": {
      "name": "nginx", "role": "ssl-proxy"
    },
    "template": {
      "metadata": {
        "name": "nginx-ssl-proxy",
        "labels": {
          "name": "nginx", "role": "ssl-proxy"
        }
      },
      "spec": {
        "containers": [
          {
            "name": "nginx-ssl-proxy",
            "image": "gcr.io/cloud-solutions-images/nginx-ssl-proxy:latest",
            "env": [
                {
                    "name": "SERVICE_HOST_ENV_NAME",
                    "value": "JENKINS_SERVICE_HOST"
                },
                {
                    "name": "SERVICE_PORT_ENV_NAME",
                    "value": "JENKINS_SERVICE_PORT_UI"
                },
                {
                    "name": "ENABLE_SSL",
                    "value": "false"
                },
                {
                    "name": "ENABLE_BASIC_AUTH",
                    "value": "true"
                }
            ],
            "ports": [
                {
                  "name": "nginx-ssl-proxy-http",
                  "containerPort": 80
                },
                {
                  "name": "nginx-ssl-proxy-https",
                  "containerPort": 443
                }
            ],
            "volumeMounts": [{
              "name": "secrets",
              "mountPath": "/etc/secrets",
              "readOnly": true
            }]
          }
        ],
        "volumes": [{
          "name": "secrets",
          "secret": {
            "secretName": "ssl-proxy-secret"
          }
        }]
      }
    }
  }
}

I'm not sure what to say.   Something about that image is not using
/etc/resolv.conf.
On Tue, May 19, 2015 at 9:26 PM, Evan Brown<EMAIL_ADDRESS>wrote:

I haven't touched /etc/resolv.conf in either image. Here's output of docker
inspect:
"HostConfig": {
...
"Dns": [
"<IP_ADDRESS>",
"<IP_ADDRESS>",
"<IP_ADDRESS>"
],
"DnsSearch": [
"default.kubernetes.local",
"default.svc.kubernetes.local",
"svc.kubernetes.local",
"kubernetes.local",
"c.your-new-project.internal.",
"297725298471.google.internal.",
"google.internal."
],
This is what I used to create the controller (the image is public):
{
"kind": "ReplicationController",
"apiVersion": "v1beta3",
"metadata": {
"name": "nginx-ssl-proxy",
"labels": {
"name": "nginx", "role": "ssl-proxy"
}
},
"spec": {
"replicas": 1,
"selector": {
"name": "nginx", "role": "ssl-proxy"
},
"template": {
"metadata": {
"name": "nginx-ssl-proxy",
"labels": {
"name": "nginx", "role": "ssl-proxy"
}
},
"spec": {
"containers": [
{
"name": "nginx-ssl-proxy",
"image": "gcr.io/cloud-solutions-images/nginx-ssl-proxy:latest",
"env": [
{
"name": "SERVICE_HOST_ENV_NAME",
"value": "JENKINS_SERVICE_HOST"
},
{
"name": "SERVICE_PORT_ENV_NAME",
"value": "JENKINS_SERVICE_PORT_UI"
},
{
"name": "ENABLE_SSL",
"value": "false"
},
{
"name": "ENABLE_BASIC_AUTH",
"value": "true"
}
],
"ports": [
{
"name": "nginx-ssl-proxy-http",
"containerPort": 80
},
{
"name": "nginx-ssl-proxy-https",
"containerPort": 443
}
],
"volumeMounts": [{
"name": "secrets",
"mountPath": "/etc/secrets",
"readOnly": true
}]
}
],
"volumes": [{
"name": "secrets",
"secret": {
"secretName": "ssl-proxy-secret"
}
}]
}
}
}
}
—
Reply to this email directly or view it on GitHub
https://github.com/GoogleCloudPlatform/kubernetes/issues/8512#issuecomment-103750879
.

Cool, I'll keep diggin'. Thanks for the help thus far.

On GKE cluster API version 0.16.0 everything works fine. But not 0.17.0. I've repro'd on multiple clusters in the last hour, and I haven't even taken a crazy pill. Something's up with 0.17.0 on GKE.
Easy to repro:

Clone https://github.com/evandbrown/kube-jenkins-imager
cluster_up.sh
gcloud compute ssh k8s-imager-node-1
exec into the nginx-ssl-proxy or jenkins-gcp-leader containers and ping metadata
cluster_down.sh
Change API version in cluster_up.sh to 0.16.0 and repeat above steps. ping metadata works now.

@evandbrown @thockin @roberthbailey
This is indeed a real issue.
resolv.conf only allows a fixed number of search paths.
You can find this upper limit by looking up MAXDNSRCH in /usr/include/resolv.h
It is generally set to 6.
In v0.17.0, we introduced a two new search domains, "default.svc.kubernetes.local" , "svc.kubernetes.local".
This caused .google.internal. search path to be the 7th search domain, essentially causing it to be silently ignored.
This means that any relative path that uses google.internal. will not work.
This limit obviously doesnt apply for FQDN since search path suffixes are not required for that..
As a result, ping worked with FQDN.

This seems bad.  Can we get this fixed asap?

This can be fixed immediately if we rollback https://github.com/GoogleCloudPlatform/kubernetes/pull/8089
We will have to find a better fix after the rollback..

I'll discuss options with @vishh today.  This will make the DNS conversion
bumpier.  Six?  That should be enough for anyone.  I'll clear a rollback
with Quinton re: PR freeze.
@smarterclayton
On Wed, May 20, 2015 at 8:24 AM, Abhi Shah<EMAIL_ADDRESS>wrote:

This can be fixed immediately if we rollback #8089
https://github.com/GoogleCloudPlatform/kubernetes/pull/8089
We will have to find a better fix after the rollback..
—
Reply to this email directly or view it on GitHub
https://github.com/GoogleCloudPlatform/kubernetes/issues/8512#issuecomment-103924874
.

and can we add a simple e2e so we don't break this again in the future?
(and @roberthbailey this is also prob. worth cutting an 0.17.1 for)

Yeah, we can add 'metadata' to the list or URLs we resolve in e2e -
iterally 1 line
On Wed, May 20, 2015 at 8:50 AM, Brendan Burns<EMAIL_ADDRESS>wrote:

and can we add a simple e2e so we don't break this again in the future?
(and @roberthbailey https://github.com/roberthbailey this is also prob.
worth cutting an 0.17.1 for)
—
Reply to this email directly or view it on GitHub
https://github.com/GoogleCloudPlatform/kubernetes/issues/8512#issuecomment-103934543
.

Agreed that this is worth 0.17.1. Bummer.
@mbforbes

Q OK'ed a rollback.  I'm on it.
On Wed, May 20, 2015 at 9:00 AM, Robert Bailey<EMAIL_ADDRESS>wrote:

Agreed that this is worth 0.17.1. Bummer.
@mbforbes https://github.com/mbforbes
—
Reply to this email directly or view it on GitHub
https://github.com/GoogleCloudPlatform/kubernetes/issues/8512#issuecomment-103938518
.

#8568 - can I get a quick review?
On Wed, May 20, 2015 at 9:03 AM, Tim Hockin<EMAIL_ADDRESS>wrote:

Q OK'ed a rollback.  I'm on it.
On Wed, May 20, 2015 at 9:00 AM, Robert Bailey<EMAIL_ADDRESS>wrote:

Agreed that this is worth 0.17.1. Bummer.
@mbforbes https://github.com/mbforbes
—
Reply to this email directly or view it on GitHub
https://github.com/GoogleCloudPlatform/kubernetes/issues/8512#issuecomment-103938518
.

And I beg for a couple hours grace to see if we can fix it before cutting
0.17.1
On Wed, May 20, 2015 at 9:07 AM, Tim Hockin<EMAIL_ADDRESS>wrote:

#8568 - can I get a quick review?
On Wed, May 20, 2015 at 9:03 AM, Tim Hockin<EMAIL_ADDRESS>wrote:

Q OK'ed a rollback. I'm on it.
On Wed, May 20, 2015 at 9:00 AM, Robert Bailey<EMAIL_ADDRESS>wrote:

Agreed that this is worth 0.17.1. Bummer.
@mbforbes https://github.com/mbforbes
—
Reply to this email directly or view it on GitHub
<
https://github.com/GoogleCloudPlatform/kubernetes/issues/8512#issuecomment-103938518

.

—
Reply to this email directly or view it on GitHub
https://github.com/GoogleCloudPlatform/kubernetes/issues/8512#issuecomment-103941611
.

cc/ @dchen1107

I am working on extending e2e to cover this failure.

we can get the e2e fix in without the rest, good idea
On Wed, May 20, 2015 at 9:52 AM, Vish Kannan<EMAIL_ADDRESS>wrote:

I am working on extending e2e to cover this failure.
—
Reply to this email directly or view it on GitHub
https://github.com/GoogleCloudPlatform/kubernetes/issues/8512#issuecomment-103957099
.

closing this issue.
It is resolved now  with https://github.com/GoogleCloudPlatform/kubernetes/pull/8568 and we have e2e test as well to cover this.

@evandbrown Which Google API client?
We don't want containers talking to the host, in general.

@bgrant0607 The Java API client in my case, but it generally affected any client that tried to resolve the metadata name. All fixed and working great in 0.17.1.
What about container->host communication, though?

Filed #8990. Container->host communication should require special permission.
Is this the client?
https://developers.google.com/api-client-library/java/

It has to be possible to call Google APIs from outside of GCE. Presumably, you just need to provide the credentials.
https://github.com/google/google-api-java-client/blob/86fd2a574487aaff9b4dbdd0396a98bb2741828f/google-api-client/src/main/java/com/google/api/client/googleapis/auth/oauth2/OAuth2Utils.java#L56
  static boolean runningOnComputeEngine(HttpTransport transport) {
    try {
      GenericUrl tokenUrl = new GenericUrl(METADATA_SERVER_URL);
      HttpRequest request = transport.createRequestFactory().buildGetRequest(tokenUrl);
      HttpResponse response = request.execute();
      HttpHeaders headers = response.getHeaders();
      if (headersContainValue(headers, "Metadata-Flavor", "Google")) {
        return true;
      }
    } catch (IOException expected) {
    }
    return false;
  }

https://github.com/google/google-api-java-client/blob/86fd2a574487aaff9b4dbdd0396a98bb2741828f/google-api-client/src/main/java/com/google/api/client/googleapis/auth/oauth2/DefaultCredentialProvider.java#L287

It's definitely possible, but creating a service account (or AWS IAM access/secret key) and distributing/revoking/rotating that credential is a huge pain. The metadata service is the de facto standard for distributing short-lived creds to apps running on EC2 (IAM roles) or GCE (scoped compute service accounts), and SDKs from both support this very well.
The GCE and EC2 metadata services would need to add done thing similar to namespaces to help here.

It's a real balancing act.  On the one hand we don't want people to couple
to the cloud environment.  On the other hand it's actually useful (as
here).  On the third hand, the VM almost certainly has privs we don't want
containers to have by default.
And yet, we can't really shut down access to things outside your k8s
cluster - project-scoped resources are a big part of the cloud experience
and we're not going to be perpetually inventing new ways to import them
into kubernetes.
We probably need a way to offer GCE's metadata at reduced scope to
containers.
On Thu, May 28, 2015 at 11:18 PM, Evan Brown<EMAIL_ADDRESS>wrote:

It's definitely possible, but creating a service account (or AWS IAM
access/secret key) and distributing/revoking/rotating that credential is a
huge pain. The metadata service is the de facto standard for distributing
short-lived creds to apps running on EC2 (IAM roles) or GCE (scoped compute
service accounts), and SDKs from both support this very well.
The GCE and EC2 metadata services would need to add done thing similar to
namespaces to help here.
—
Reply to this email directly or view it on GitHub
https://github.com/GoogleCloudPlatform/kubernetes/issues/8512#issuecomment-106703669
.


Test ChemPy with SymPy 1.10rc2

SymPy 1.10 is in pre-release testing. Suggest we test ChemPy to make sure the SymPy update doesn't break any ChemPy functionality.
You can install this release candidate with
pip install --pre sympy

I'll add this to my list.  One of the next chances I get I'll look into this and some other dependency and warning issues I've discovered recently.


Bad r0 dark on 20230927

r0 dark and morning dark for 20230927 are particularly poor. Potentially affects all observations for the night and may be associated with new SM4 mirror. Note that this effect is also present in r0 dark for 20230928 and 20230929 although less significant.
Covers expids: 00198312-00198336 and main-bright tileids: [20691, 22357, 22358, 22280, 23938, 25507, 25505, 26802, 27351, 26801]

r0 is marked bad for this whole night, tiles reprocessed. In addition, I had to mark r5 as bad for (expid: 198318, tileid 40692) as there were no valid calib stars on that petal for fluxcalibration. nightqa+tsnr updated
https://data.desi.lbl.gov/desi/spectro/redux/daily/nightqa/20230927/

Thanks Abhijeet, @SGontcho , can you clear & repeat QA on this night?  Thanks!


Fail to install IBM Cloud Developer Tools

Summary
When trying to install IBM Cloud Developer Tools, I get errors for the helm part and the download is not successful. I have also tried to set up  [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 as I read in another post, but it didn't work.

At line:193 char:5

$helm_url = ((Invoke-WebRequest https://github.com/kubernetes/hel ...

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

CategoryInfo          : InvalidOperation: (:) [], RuntimeException
FullyQualifiedErrorId : InvokeMethodOnNull

[install_deps] Helm URL :
You cannot call a method on a null-valued expression.
At line:195 char:5

$helm_file = $helm_url.Split("/")[-1]

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

CategoryInfo          : InvalidOperation: (:) [], RuntimeException
FullyQualifiedErrorId : InvokeMethodOnNull

[install_deps] Helm File:
Invoke-WebRequest : Cannot validate argument on parameter 'Uri'. The argument is null or empty. Provide an argument tha
t is not null or empty, and then try the command again.
At line:197 char:23

Invoke-WebRequest $helm_url -UseBasicParsing -outfile "$helm_file ...

                  ~~~~~~~~~

CategoryInfo          : InvalidData: (:) [Invoke-WebRequest], ParameterBindingValidationException
FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeWebRequestCommand

Expand-7Zip : Cannot validate argument on parameter 'ArchiveFileName'. The argument is null or empty. Provide an argume
nt that is not null or empty, and then try the command again.
At line:202 char:17

Expand-7Zip $helm_file .

            ~~~~~~~~~~

CategoryInfo          : InvalidData: (:) [Expand-7Zip], ParameterBindingValidationException
FullyQualifiedErrorId : ParameterArgumentValidationError,SevenZip4PowerShell.Expand7Zip

You cannot call a method on a null-valued expression.
At line:203 char:5

$tar_file = $helm_file.Replace('.gz','')

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

CategoryInfo          : InvalidOperation: (:) [], RuntimeException
FullyQualifiedErrorId : InvokeMethodOnNull

Expand-7Zip : Cannot validate argument on parameter 'ArchiveFileName'. The argument is null or empty. Provide an argume
nt that is not null or empty, and then try the command again.
At line:204 char:17

Expand-7Zip $tar_file "C:\Program Files\helm"

            ~~~~~~~~~

CategoryInfo          : InvalidData: (:) [Expand-7Zip], ParameterBindingValidationException
FullyQualifiedErrorId : ParameterArgumentValidationError,SevenZip4PowerShell.Expand7Zip

Remove-Item : Cannot bind argument to parameter 'Path' because it is null.
At line:205 char:17

Remove-Item $helm_file -erroraction 'silentlycontinue'

            ~~~~~~~~~~

CategoryInfo          : InvalidData: (:) [Remove-Item], ParameterBindingValidationException
FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.RemoveItemC
ommand

Remove-Item : Cannot bind argument to parameter 'Path' because it is null.
At line:206 char:17

Remove-Item $tar_file  -erroraction 'silentlycontinue'

            ~~~~~~~~~

CategoryInfo          : InvalidData: (:) [Remove-Item], ParameterBindingValidationException
FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.RemoveItemC
ommand

[install_deps] Install/update completed for: helm
[install_bx] Installing IBM Cloud 'bx' CLI for Windows...
[install_bx] Downloading and installing IBM Cloud 'bx' CLI from: https://clis.ng.bluemix.net/install/powershell
Current platform is Win64. Downloading corresponding Bluemix CLI...
Start-BitsTransfer : The handle is invalid. (Exception from HRESULT: 0x80070006 (E_HANDLE))
At line:23 char:1

Start-BitsTransfer -Source "$($resp.ResponseUri.AbsoluteUri)" -Destin ...

  + CategoryInfo          : NotSpecified: (:) [Start-BitsTransfer], COMException
  + FullyQualifiedErrorId : System.Runtime.InteropServices.COMException,Microsoft.BackgroundIntelligentTransfer.Mana
 gement.NewBitsTransferCommand

Download complete. Executing installer...
& : The term 'C:\Users\ROSA~1.SIE\AppData\Local\Temp\Bluemix_CLI.exe' is not recognized as the name of a cmdlet, functi
on, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path i
s correct and try again.
At line:27 char:3

& $DownloadedInstaller /s /v"REBOOT=ReallySupress /qn"

+ CategoryInfo          : ObjectNotFound: (C:\Users\ROSA~1...Bluemix_CLI.exe:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

Install complete. Please restart to make the modification effective.
[install_bx] IBM Cloud CLI version:
C:\Program Files\IBM\Bluemix\bin\bx.exe : The term 'C:\Program Files\IBM\Bluemix\bin\bx.exe' is not recognized as the n
ame of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included,
verify that the path is correct and try again.
At line:241 char:3

C:"Program Files"\IBM\Bluemix\bin\bx.exe --version

+ CategoryInfo          : ObjectNotFound: (C:\Program Files\IBM\Bluemix\bin\bx.exe:String) [], CommandNotFoundExce

ption
+ FullyQualifiedErrorId : CommandNotFoundException
[install_plugins] Installing/updating IBM Cloud CLI plugins used by IDT...
C:\Program Files\IBM\Bluemix\bin\bx.exe : The term 'C:\Program Files\IBM\Bluemix\bin\bx.exe' is not recognized as the n
ame of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included,
verify that the path is correct and try again.
At line:253 char:17

$pluginlist = C:"Program Files"\IBM\Bluemix\bin\bx.exe plugin list

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

CategoryInfo          : ObjectNotFound: (C:\Program Files\IBM\Bluemix\bin\bx.exe:String) [], CommandNotFoundExce
ption
FullyQualifiedErrorId : CommandNotFoundException

[install_plugins] Checking status of plugin: Cloud-Functions
[install_plugins] Installing plugin 'Cloud-Functions'
C:\Program Files\IBM\Bluemix\bin\bx.exe : The term 'C:\Program Files\IBM\Bluemix\bin\bx.exe' is not recognized as the n
ame of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included,
verify that the path is correct and try again.
At line:261 char:9

    C:\"Program Files"\IBM\Bluemix\bin\bx.exe plugin install -r $ ...

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

CategoryInfo          : ObjectNotFound: (C:\Program Files\IBM\Bluemix\bin\bx.exe:String) [], CommandNotFoundExce
ption
FullyQualifiedErrorId : CommandNotFoundException

[install_plugins] Checking status of plugin: container-registry
[install_plugins] Installing plugin 'container-registry'
C:\Program Files\IBM\Bluemix\bin\bx.exe : The term 'C:\Program Files\IBM\Bluemix\bin\bx.exe' is not recognized as the n
ame of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included,
verify that the path is correct and try again.
At line:261 char:9

    C:\"Program Files"\IBM\Bluemix\bin\bx.exe plugin install -r $ ...

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

CategoryInfo          : ObjectNotFound: (C:\Program Files\IBM\Bluemix\bin\bx.exe:String) [], CommandNotFoundExce
ption
FullyQualifiedErrorId : CommandNotFoundException

[install_plugins] Checking status of plugin: container-service
[install_plugins] Installing plugin 'container-service'
C:\Program Files\IBM\Bluemix\bin\bx.exe : The term 'C:\Program Files\IBM\Bluemix\bin\bx.exe' is not recognized as the n
ame of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included,
verify that the path is correct and try again.
At line:261 char:9

    C:\"Program Files"\IBM\Bluemix\bin\bx.exe plugin install -r $ ...

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

CategoryInfo          : ObjectNotFound: (C:\Program Files\IBM\Bluemix\bin\bx.exe:String) [], CommandNotFoundExce
ption
FullyQualifiedErrorId : CommandNotFoundException

[install_plugins] Checking status of plugin: dev
[install_plugins] Installing plugin 'dev'
C:\Program Files\IBM\Bluemix\bin\bx.exe : The term 'C:\Program Files\IBM\Bluemix\bin\bx.exe' is not recognized as the n
ame of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included,
verify that the path is correct and try again.
At line:261 char:9

    C:\"Program Files"\IBM\Bluemix\bin\bx.exe plugin install -r $ ...

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

CategoryInfo          : ObjectNotFound: (C:\Program Files\IBM\Bluemix\bin\bx.exe:String) [], CommandNotFoundExce
ption
FullyQualifiedErrorId : CommandNotFoundException

[install_plugins] Checking status of plugin: sdk-gen
[install_plugins] Installing plugin 'sdk-gen'
C:\Program Files\IBM\Bluemix\bin\bx.exe : The term 'C:\Program Files\IBM\Bluemix\bin\bx.exe' is not recognized as the n
ame of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included,
verify that the path is correct and try again.
At line:261 char:9

    C:\"Program Files"\IBM\Bluemix\bin\bx.exe plugin install -r $ ...

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

CategoryInfo          : ObjectNotFound: (C:\Program Files\IBM\Bluemix\bin\bx.exe:String) [], CommandNotFoundExce
ption
FullyQualifiedErrorId : CommandNotFoundException

[install_plugins] Running 'bx plugin list'...
C:\Program Files\IBM\Bluemix\bin\bx.exe : The term 'C:\Program Files\IBM\Bluemix\bin\bx.exe' is not recognized as the n
ame of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included,
verify that the path is correct and try again.
At line:265 char:3

C:"Program Files"\IBM\Bluemix\bin\bx.exe plugin list

+ CategoryInfo          : ObjectNotFound: (C:\Program Files\IBM\Bluemix\bin\bx.exe:String) [], CommandNotFoundExce

ption
+ FullyQualifiedErrorId : CommandNotFoundException
[install_plugins] Finished installing/updating plugins
Creating 'idt' script to act as shortcut to 'bx dev' command...
Out-File : Could not find a part of the path 'C:\Program Files\IBM\Bluemix\bin\idt.bat'.
At line:299 char:29

... idt_batch | Out-File -Encoding ascii "C:\Program Files\IBM\Bluemix\bi ...

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

CategoryInfo          : OpenError: (:) [Out-File], DirectoryNotFoundException
FullyQualifiedErrorId : FileOpenFailure,Microsoft.PowerShell.Commands.OutFileCommand

[install] Install finished.
[quit] --==[ Finished. Total time: 00:01:42 seconds ]==--

Development "done" checklist

[ ] Test case to verify
[ ] Public Documentation updated
[ ] Change added to "release notes" as appropropriate
[ ] Notification to stakeholders (OM, other squads, etc)

I'm not able to reproduce this problem installing helm with the IDT installer.  Are you still seeing this problem?

I have just tried and I still see the problem with helm. Also, the branch didn't solve the bx.exe issue for me.

I have tried to run the branch with --trace and the output is in the attached file.
Issue.txt

I am having the exact same helm installation issue on Windows 10. Is fix/workaround available? Thank you
[install_deps] Checking for external dependency: helm
[install_deps] Installing/updating external dependency: helm
You cannot call a method on a null-valued expression.
At line:193 char:5
$helm_url = ((Invoke-WebRequest https://github.com/kubernetes/hel ...
CategoryInfo : InvalidOperation: (:) [], RuntimeException
FullyQualifiedErrorId : InvokeMethodOnNull
[install_deps] Helm URL :
You cannot call a method on a null-valued expression.
At line:195 char:5

$helm_file = $helm_url.Split("/")[-1]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CategoryInfo : InvalidOperation: (:) [], RuntimeException
FullyQualifiedErrorId : InvokeMethodOnNull
[install_deps] Helm File:
Invoke-WebRequest : Cannot validate argument on parameter 'Uri'. The argument is null or empty. Provide an argument tha
t is not null or empty, and then try the command again.
At line:197 char:23

Invoke-WebRequest $helm_url -UseBasicParsing -outfile "$helm_file ...
                  ~~~~~~~~~
CategoryInfo : InvalidData: (:) [Invoke-WebRequest], ParameterBindingValidationException
FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
Expand-7Zip : Cannot validate argument on parameter 'ArchiveFileName'. The argument is null or empty. Provide an argume
nt that is not null or empty, and then try the command again.
At line:202 char:17

Expand-7Zip $helm_file .
            ~~~~~~~~~~
CategoryInfo : InvalidData: (:) [Expand-7Zip], ParameterBindingValidationException
FullyQualifiedErrorId : ParameterArgumentValidationError,SevenZip4PowerShell.Expand7Zip
You cannot call a method on a null-valued expression.
At line:203 char:5

$tar_file = $helm_file.Replace('.gz','')
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CategoryInfo : InvalidOperation: (:) [], RuntimeException
FullyQualifiedErrorId : InvokeMethodOnNull
Expand-7Zip : Cannot validate argument on parameter 'ArchiveFileName'. The argument is null or empty. Provide an argume
nt that is not null or empty, and then try the command again.
At line:204 char:17

Expand-7Zip $tar_file "C:\Program Files\helm"
            ~~~~~~~~~
CategoryInfo : InvalidData: (:) [Expand-7Zip], ParameterBindingValidationException
FullyQualifiedErrorId : ParameterArgumentValidationError,SevenZip4PowerShell.Expand7Zip
Remove-Item : Cannot bind argument to parameter 'Path' because it is null.
At line:205 char:17

Remove-Item $helm_file -erroraction 'silentlycontinue'
            ~~~~~~~~~~
CategoryInfo : InvalidData: (:) [Remove-Item], ParameterBindingValidationException
FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.RemoveItemC
ommand
Remove-Item : Cannot bind argument to parameter 'Path' because it is null.
At line:206 char:17

Remove-Item $tar_file  -erroraction 'silentlycontinue'
            ~~~~~~~~~
CategoryInfo : InvalidData: (:) [Remove-Item], ParameterBindingValidationException
FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.RemoveItemC
ommand
[install_deps] Install/update completed for: helm

It appears that the file contents were changed at https://github.com/kubernetes/helm. As the result, the line 193 can't find what it is looking for.
$helm_url = ((Invoke-WebRequest https://github.com/kubernetes/helm -UseBasicParsing).Links.OuterHTML | Where-Object{$_ -match 'windows-amd64.tar.gz'} | Select-Object -first 1).Split('"')[1]
After it's changed to
$helm_url = ((Invoke-WebRequest 'https://github.com/kubernetes/helm/releases/tag/v2.9.1' -UseBasicParsing).Links.OuterHTML | Where-Object{$_ -match 'windows-amd64.zip'} | Select-Object -first 1).Split('"')[1]
it completes successfully for me.
A timely verification/confirmation is appreciated. We are preparing for a hackathon.

I understand you already "fixed" the other problem in the script (incorrect IBM Cloud path). Will the fixes for both issues will be available soon?

This has been fixed and is in the production install script.

IBMCloudError.txt
Hi, now indeed helm is successfully installed. However the IBM Cloud path does not work yet. Please see file attached. Could you please help me out with this?

Thanks, we will take a look at it.  I see a reference to the old exe name (Bluemix_CLI.exe).  Which should now be IBM_Cloud_CLI.exe.  Did you have an older version of the CLI already installed, or was this a fresh install?

Looking into the latest problem as noted above by @227332

From your log above, the actual problem was that your system was not able to run the Powershell installation script.  I am not able to reproduce this.  The script attempts to use bx.exe from a common location which fails, but this is not a blocking failure as it then continues to just install ibmcloud.  Here is my output:
 Set-ExecutionPolicy Unrestricted; iex(New-Object Net.WebClient).DownloadString('http://ibm.biz/idt-
win-installer')

Execution Policy Change
The execution policy helps protect you from scripts that you do not trust. Changing the execution policy might expose
you to the security risks described in the about_Execution_Policies help topic at
https:/go.microsoft.com/fwlink/?LinkID=135170. Do you want to change the execution policy?
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "N"): Y
[main] --==[ IBM Cloud Developer Tools - Installer for Windows, v1.2.0 ]==--
[install] Starting Installation/Update...
C:\Program Files\IBM\Cloud\bin\bx.exe : The term 'C:\Program Files\IBM\Cloud\bin\bx.exe' is not recognized as the name
of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included,
verify that the path is correct and try again.
At line:1 char:1
+ C:\"Program Files"\IBM\Cloud\bin\bx.exe plugin list
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\Program Files\IBM\Cloud\bin\bx.exe:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

[install_deps] Checking for external dependency: git
[install_deps] Checking for external dependency: docker
[install_deps] Checking for external dependency: kubectl
[install_deps] Checking for external dependency: helm
[install_bx] Installing 'ibmcloud' CLI for Windows...
[install_bx] Downloading and installing 'ibmcloud' CLI from: https://clis.ng.bluemix.net/install/powershell
Current platform is Win64. Downloading corresponding Bluemix CLI...
Download complete. Executing installer...
Install complete. Please restart to make the modification effective.
[install_bx] IBM Cloud CLI version:
C:\Program Files\IBM\Cloud\bin\bx.exe version 0.8.0+50d0d38-2018-07-11T06:46:29+00:00
[install_plugins] Installing/updating IBM Cloud CLI plugins used by IDT...
[install_plugins] Checking status of plugin: Cloud-Functions
[install_plugins] Installing plugin 'Cloud-Functions'
Looking up 'Cloud-Functions' from repository 'Bluemix'...
Plug-in 'cloud-functions 1.0.20' found in repository 'Bluemix'
Attempting to download the binary file...
 11.21 MiB / 11.21 MiB [===================================================================================] 100.00% 1s
11757568 bytes downloaded
Installing binary...
OK
Plug-in 'cloud-functions 1.0.20' was successfully installed into C:\Users\testarf\.bluemix\plugins\cloud-functions. Use 'C:\Program Files\IBM\Cloud\bin\bx.exe plugin show cloud-functions' to show its details.
[install_plugins] Checking status of plugin: container-registry
[install_plugins] Installing plugin 'container-registry'
Looking up 'container-registry' from repository 'Bluemix'...
Plug-in 'container-registry 0.1.326' found in repository 'Bluemix'
Attempting to download the binary file...
 30.20 MiB / 30.20 MiB [===================================================================================] 100.00% 4s
31663104 bytes downloaded
Installing binary...
OK
Plug-in 'container-registry 0.1.326' was successfully installed into C:\Users\testarf\.bluemix\plugins\container-registry. Use 'C:\Program Files\IBM\Cloud\bin\bx.exe plugin show container-registry' to show its details.
[install_plugins] Checking status of plugin: container-service
[install_plugins] Installing plugin 'container-service'
Looking up 'container-service' from repository 'Bluemix'...
Plug-in 'container-service(alias: kubernetes-service) 0.1.555' found in repository 'Bluemix'
Attempting to download the binary file...
 20.94 MiB / 20.94 MiB [===================================================================================] 100.00% 4s
21954048 bytes downloaded
Installing binary...
OK
Plug-in 'container-service 0.1.555' was successfully installed into C:\Users\testarf\.bluemix\plugins\container-service. Use 'C:\Program Files\IBM\Cloud\bin\bx.exe plugin show container-service' to show its details.
[install_plugins] Checking status of plugin: dev
[install_plugins] Installing plugin 'dev'
Looking up 'dev' from repository 'Bluemix'...
Plug-in 'dev 2.0.1' found in repository 'Bluemix'
Attempting to download the binary file...
 17.44 MiB / 17.44 MiB [===================================================================================] 100.00% 3s
18283008 bytes downloaded
Installing binary...
OK
Plug-in 'dev 2.0.1' was successfully installed into C:\Users\testarf\.bluemix\plugins\dev. Use 'C:\Program Files\IBM\Cloud\bin\bx.exe plugin show dev' to show its details.
[install_plugins] Checking status of plugin: sdk-gen
[install_plugins] Installing plugin 'sdk-gen'
Looking up 'sdk-gen' from repository 'Bluemix'...
Plug-in 'sdk-gen 0.1.10' found in repository 'Bluemix'
Attempting to download the binary file...
 10.36 MiB / 10.36 MiB [===================================================================================] 100.00% 1s
10860544 bytes downloaded
Installing binary...
OK
Plug-in 'sdk-gen 0.1.10' was successfully installed into C:\Users\testarf\.bluemix\plugins\sdk-gen. Use 'C:\Program Files\IBM\Cloud\bin\bx.exe plugin show sdk-gen' to show its details.
[install_plugins] Running 'ibmcloud plugin list'...
Listing installed plug-ins...

Plugin Name                                    Version
cloud-functions                                1.0.20
container-registry                             0.1.326
container-service(alias: kubernetes-service)   0.1.555
dev                                            2.0.1
sdk-gen                                        0.1.10

[install_plugins] Finished installing/updating plugins
Creating 'idt' script to act as shortcut to 'bx dev' command...
[install] Install finished.
[quit] --==[ Finished. Total time: 00:00:54 seconds ]==--

A system restart is required. Would you like to restart now (y/N)?:

@byang would you be able to look at the log here:  https://github.com/IBM-Cloud/ibm-cloud-developer-tools/issues/54#issuecomment-405479814 .  Perhaps you have seen something like this as this is actually the ibmcloud installer that is having the problem executing the Start-BitsTransfer command.  Thanks

@steveclay Just thinking "out loud" here... Could the error from the log be a result of running the installer without Administrator privileges?

@steveclay I think https://github.com/IBM-Cloud/ibm-cloud-developer-tools/issues/54#issuecomment-405479814 is due to a bug in IDT installation script.
Here is the install function
https://github.com/IBM-Cloud/ibm-cloud-developer-tools/blob/85ad87b6887d756d0e28ccf0280e09b55e08fe88/windows-installer/idt-win-installer.ps1#L121-L126
If the customer has never installed IBM Cloud CLI before, then the script will assume it's under C:\"Program Files"\IBM\Cloud\bin\bx.exe, which is wrong.
And install_bx is invoked, but after several lines.
https://github.com/IBM-Cloud/ibm-cloud-developer-tools/blob/85ad87b6887d756d0e28ccf0280e09b55e08fe88/windows-installer/idt-win-installer.ps1#L139-L146
So the sequence is not correct here. I guess you need to uplift line 140 to right above line 125, i.e. install CLI before using it.
I verified the IDT installation script on a clear Win10, and I met the same error.

The error about looking for bx.exe is annoying, but not actually the critical failure the customer is getting.  It is a harmless failure (my output has it too, but then it continues to succeed with the install), the critical failure for them was that ibmcloud did not install.  Please see the log that was attached above by @227332 .  Thanks

The returned error HRESULT: 0x80070006 is too vague (according to here). I did some search, but didn't find an obvious clue.
@227332 , would you mind if you could open a powershell console, and enter the following commands:
Set-PSDebug -Trace 2
iex(New-Object Net.WebClient).DownloadString('https://clis.ng.bluemix.net/install/powershell')

Let me know the results.
Also I have prepared a speculative fix. Would you please also try install.txt I attached here? (After download, please rename it to install.ps1, and run it under powershell console)
install.txt

Hi,
when I run:
Set-PSDebug -Trace 2
iex(New-Object Net.WebClient).DownloadString('https://clis.ng.bluemix.net/install/powershell')
I get the following result:
DEBUG:    2+  >>>> iex(New-Object Net.WebClient).DownloadString('https://clis.ng.bluemix.net/install/powershell')
DEBUG:   19+                                         if ( &  >>>> { Set-StrictMode -Version 1; $.PSMessageDetails } )
{
DEBUG:     ! CALL function ''
DEBUG:   19+                                         if ( & {  >>>> Set-StrictMode -Version 1; $.PSMessageDetails } )
{
DEBUG:   19+                                         if ( & { Set-StrictMode -Version 1;  >>>> $.PSMessageDetails } )
{
DEBUG:    1+ &  >>>> { Set-StrictMode -Version 1; $this.Exception.InnerException.PSMessageDetails }
DEBUG:     ! CALL function ''
DEBUG:    1+ & {  >>>> Set-StrictMode -Version 1; $this.Exception.InnerException.PSMessageDetails }
DEBUG:    1+ & { Set-StrictMode -Version 1;  >>>> $this.Exception.InnerException.PSMessageDetails }
DEBUG:    1+ & { Set-StrictMode -Version 1; $this.Exception.InnerException.PSMessageDetails  >>>> }
DEBUG:   19+                                         if ( & { Set-StrictMode -Version 1; $.PSMessageDetails  >>>> } )
{
DEBUG:   26+                                         $errorCategoryMsg = &  >>>> { Set-StrictMode -Version 1;
$.ErrorCategory_Message }
DEBUG:     ! CALL function ''
DEBUG:   26+                                         $errorCategoryMsg = & {  >>>> Set-StrictMode -Version 1;
$.ErrorCategory_Message }
DEBUG:   26+                                         $errorCategoryMsg = & { Set-StrictMode -Version 1;  >>>>
$.ErrorCategory_Message }
DEBUG:   26+                                         $errorCategoryMsg = & { Set-StrictMode -Version 1;
$.ErrorCategory_Message  >>>> }
DEBUG:   42+                                         $originInfo = &  >>>> { Set-StrictMode -Version 1; $.OriginInfo
}
DEBUG:     ! CALL function ''
DEBUG:   42+                                         $originInfo = & {  >>>> Set-StrictMode -Version 1; $.OriginInfo
}
DEBUG:   42+                                         $originInfo = & { Set-StrictMode -Version 1;  >>>> $.OriginInfo
}
DEBUG:   42+                                         $originInfo = & { Set-StrictMode -Version 1; $.OriginInfo  >>>>
}
Exception calling "DownloadString" with "1" argument(s): "The underlying connection was closed: An unexpected error occ
urred on a send."
At line:2 char:1

iex(New-Object Net.WebClient).DownloadString('https://clis.ng.bluemix ...

  + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
  + FullyQualifiedErrorId : WebException

When I run the install.ps1 file under powershell, I get the following:
Current platform is Win64. Downloading corresponding Bluemix CLI...
Exception calling "GetResponse" with "0" argument(s): "The underlying connection was closed: An unexpected error occurr
ed on a send."
At C:\Users\rosa.siervo\Downloads\install.ps1:22 char:1

$resp = $req.GetResponse()

  + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
  + FullyQualifiedErrorId : WebException

Exception calling "DownloadFile" with "2" argument(s): "The path is not of a legal form."
At C:\Users\rosa.siervo\Downloads\install.ps1:26 char:55

... .Net.WebClient).DownloadFile("$($resp.ResponseUri.AbsoluteUri)", $Dow ...

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

CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
FullyQualifiedErrorId : ArgumentException

Download complete. Executing installer...
& : The term 'C:\Users\ROSA~1.SIE\AppData\Local\Temp\Bluemix_CLI.exe' is not recognized as the name of a cmdlet, functi
on, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path i
s correct and try again.
At C:\Users\rosa.siervo\Downloads\install.ps1:31 char:3

& $DownloadedInstaller /s /v"REBOOT=ReallySupress /qn"

+ CategoryInfo          : ObjectNotFound: (C:\Users\ROSA~1...Bluemix_CLI.exe:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

Install complete. Please restart to make the modification effective.

@227332 by chance, are you running this over an unreliable or very slow network?   We've been able to recreate a similar error only under specific network conditions.

Hi, I don't think so because I have tried to run it at home and at work and in both cases I got this issue...

@227332 Would you please try the following? Thanks

Open powershell console, and type in:

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

Then try:

Set-ExecutionPolicy Unrestricted; iex(New-Object Net.WebClient).DownloadString('https://clis.ng.bluemix.net/install/powershell')

Hi,
I have followed your instructions! Here is the outcome:
Execution Policy Change
The execution policy helps protect you from scripts that you do not trust. Changing the execution policy might expose
you to the security risks described in the about_Execution_Policies help topic at
https:/go.microsoft.com/fwlink/?LinkID=135170. Do you want to change the execution policy?
[Y] Yes  [A] Yes to All  [N] No  [L] No to All  [S] Suspend  [?] Help (default is "N"): Y
Current platform is Win64. Downloading corresponding Bluemix CLI...
Start-BitsTransfer : The handle is invalid. (Exception from HRESULT: 0x80070006 (E_HANDLE))
At line:23 char:1

Start-BitsTransfer -Source "$($resp.ResponseUri.AbsoluteUri)" -Destin ...

  + CategoryInfo          : NotSpecified: (:) [Start-BitsTransfer], COMException
  + FullyQualifiedErrorId : System.Runtime.InteropServices.COMException,Microsoft.BackgroundIntelligentTransfer.Mana
 gement.NewBitsTransferCommand

Download complete. Executing installer...
& : The term 'C:\Users\ROSA~1.SIE\AppData\Local\Temp\Bluemix_CLI.exe' is not recognized as the name of a cmdlet, functi
on, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path i
s correct and try again.
At line:27 char:3

& $DownloadedInstaller /s /v"REBOOT=ReallySupress /qn"

+ CategoryInfo          : ObjectNotFound: (C:\Users\ROSA~1...Bluemix_CLI.exe:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

Install complete. Please restart to make the modification effective.

@227332 OK... The underlying connection was closed error is resolved. The root cause should be due to the TLS handshake. However, it seems that BITS service is abnormal in your desktop environment.
Would you mind if you could try the following?

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Run the install.ps1 I attached above.

Hi,
I am facing the issue at helm installation.
Console Output:
PS C:\WINDOWS\system32> Set-ExecutionPolicy Unrestricted; iex(New-Object Net.WebClient).DownloadString('http://ibm.biz/idt-win-installer')
[main] --==[ IBM Cloud Developer Tools - Installer for Windows, v1.2.0 ]==--
[install] Starting Installation/Update...
C:\Program Files\IBM\Cloud\bin\bx.exe : The term 'C:\Program Files\IBM\Cloud\bin\bx.exe' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1

C:"Program Files"\IBM\Cloud\bin\bx.exe plugin list

  + CategoryInfo          : ObjectNotFound: (C:\Program Files\IBM\Cloud\bin\bx.exe:String) [], CommandNotFoundException
  + FullyQualifiedErrorId : CommandNotFoundException

[install_deps] Checking for external dependency: git
[install_deps] Checking for external dependency: docker
[install_deps] Installing/updating external dependency: docker
[install_deps] Install/update completed for: docker
[install_deps] Checking for external dependency: kubectl
[install_deps] Checking for external dependency: helm
[install_deps] Installing/updating external dependency: helm
It will remain stuck here.
Regards

That bx.exe error message is misleading.  That just means that the cli wasn't already installed.  I suspect the helm download link changed again.  Lets get on this ASAP.

插件名称                               版本
cloud-functions/wsk/functions/fn       1.0.22
container-registry                     0.1.339
container-service/kubernetes-service   0.1.591
dev                                    2.1.4
sdk-gen                                0.1.12
[install_plugins] Finished installing/updating plugins
Creating 'idt' script to act as shortcut to 'bx dev' command...
Out-File : 路径中具有非法字符。
所在位置 行:325 字符: 29

Write-Output $idt_batch | Out-File -Encoding ascii $idt_command

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

CategoryInfo          : OpenError: (:) [Out-File], ArgumentException
FullyQualifiedErrorId : FileOpenFailure,Microsoft.PowerShell.Commands.OutFileCommand

hello， when I excute the powershell code ,show the error.
so  how i can solve this problem

@DNLi303 we are working to correct this problem. It looks as though you encountered the problem on Windows 10 where it is unable to write the idt script. This means that you will not be able to use commands that explicitly use idt as the call, but all of the commands that use ibmcloud as the call will work.  For example, ibmcloud dev create. Please let me know if you are blocked by any use and apologies for this error.

The path is wrong, you need to remove the "" at "Program Files" !
WRONG path: 'C:"Program Files"\IBM\Cloud\bin\idt.bat'
CORRECT PATH : 'C:\Program Files\IBM\Cloud\bin\idt.bat'
And you need to remove "Ssl3" on line 153, Microsoft removed support for it
CORRECT LINE 153:   [Net.ServicePointManager]::SecurityProtocol = "Tls12, Tls11, Tls"

Helm install fixed by #96

IDT creationg path fixed by #97


Platfom-specific code via a .NET Standard library

A section that talks about to wrap platfom-specific code via a .NET Standard library

https://github.com/JamesNK/BookOfDotNetOSS/pull/23


Algorithmic keys distribution

The client should be able to know algorithmically to which MTServer a given value should be sent.

Here is the plot ~1000 random UUID string hashes among 3, 5 and 15 configured nodes using the MTCaravan algorithm.

Here https://github.com/sebastianconcept/matter/pull/8


Elaborate the C-DEREF guideline

The motivation for the C-DEREF guideline and the potential problems resulting from ignoring it are (imho) not self explaning. The strongest clue I can find is from the guideline being filed in the Predictability section.
Neither the guideline, the doc or the smart pointer section of The Book explicitly define the difference between smart pointers and general applications of the newtype pattern. Outside the std library contributors there does seem to be confusion (see this old reddit thread). Maybe just referencing C-SMART-PTR would suffice.
Ideally the guideline shouldn't just describe what not to do, but what to do instead: When to impl AsRef/AsMut? What other options are there?

I just saw #251, which might make this issue obsolete. If you feel it does, just close it.


MWPW-113002 Adding up patterns to charts

Add chart section class
Add 1-up, 2-up and 3-up

Resolves: MWPW-113002
Test URLs:

Before: https://data-viz--milo--adobecom.hlx.page/drafts/bmarshal/chart
After: https://chart-up--milo--adobecom.hlx.page/drafts/bmarshal/chart

Going to open a new PR, looks like helix isn't loading the chart theme so the charts don't load.
https://chartup--milo--adobecom.hlx.page/libs/blocks/chart/chartLightTheme.js


Code Coverage from Test Task not working with Onsite Build Agent but fine on hosted

The Test Task doesn't add any code coverage if we use are on-premise build agent. I think this might be because we were missing Visual Studio Professional but I've tried installing this and it's still not producing the coverage attachment or appearing in the UI.
Running the same build using Hosted Agent works fine. I've checked the agent installation documentation but I've not missed anything there.
Does anyone know what I've missed or configuration I need to do on our build machines ?

Hi @johnkattenhorn,
Do you know which version of on-premises TFS you are using, or which version of the build agent is running on-premises?
Since the build agent is also available independently, you could upgrade to the latest version here.

Hi @DavidStaheli
We are using On-premise build agents connected to our Visual Studio Team Services subscription.
I ran a update agent against the pool and the Agent.Capability reads 1.105.6, does this help track our issue ?
Thanks
John

I've just upgraded the Agent so that the Agent.Capability reads 2.110.0, unfortunately the problem still remains.

This is now resolved but I thought I'd put the resolution here in case it helps anyone else:
I found I needed to:
Install Visual Studio 2015 Test Agents into the build server. I believe I could have also installed Visual Studio 2015 Enterprise as the Code Coverage components are included too but the Test Agent made more sense.
xUnit Preview Test Runner - Once the Test Agent bits were installed we found that our Test Task started to stall at the discovery phase. We currently use xUnit, we were on the latest bits but there seemed to be a lot more commits being released into the preview packages so we upgraded as a test and everything started working.

The official way, from a license perspective, is to install Visual Studio Enterprise.
The Test Agent bits contain the required bit to gather code coverage, but you're officially not licensed to use them.


Add CI for PRs

Add CI support within GitHub to auto-respond to PRs

For this you can have a look at my 3 branches:

Ubuntu 18.04 on AppVeyor: appveyor.yml
Ubuntu 16.04 on CircleCI: .circleci/config.yml
Ubuntu 14.04 on TravisCI: .travis.yml

Only someone with commit rights to the original repository can set CI up on these CI services though.

Yeah I'm playing around with Google Cloud Build right now. Still trying to figure it out, but it could be pretty useful if it works.

I'm getting it to pass now.


Made GO ontology, sped up base ontology, added aliases to refgen, fixed bug with config.

Most of these were merged much earlier, but for some reason they didn't trigger this to close.


Allow Development mode on test containers

Feature Description
Allow to easily set development mode on the Axon Server test containers. In addition, provide a method to easily reset the event store, so customers can do this after each test.
Current Behaviour
We have to bring the testcontainer down and up again, instead of just clearing the event store.

In my example app I have a workaround I use. It is hacky but it works:

Launch the container with the env variable "axoniq.axonserver.devmode.enabled", "true" set (see here)
Abstract away the containers for the integration test into a "deployment" which has a method resetDeploymentState (see here)

This does four things: (i) shuts down the TEPs, (ii) resets the events in Axon Server (iii) resets the schema to the initial one in the postgres DB (iv) restarts the TEPs

Use the @BeforeEach part in an actual integration test to call the resetDeploymentState method (see here)

Maybe you find it useful 👍

Adding the variable to our AxonServer testcontainers and adding a method like the following would solve this issue:
https://github.com/vab2048/axon-exhibition/blob/main/axon-exhibition-app/src/integrationTest/java/io/github/vab2048/axon/exhibition/app/config/testcontainers/AxonServerContainer.java#L145
These are the testcontainers I'm talking about:
https://github.com/AxonFramework/AxonFramework/blob/master/test/src/main/java/org/axonframework/test/server/AxonServerSEContainer.java
https://github.com/AxonFramework/AxonFramework/blob/master/test/src/main/java/org/axonframework/test/server/AxonServerEEContainer.java

@Morlack the variable is already there, since the beginning =)
https://github.com/AxonFramework/AxonFramework/blob/master/test/src/main/java/org/axonframework/test/server/AxonServerSEContainer.java#L43
And it is only supported by the SE version (AFAIK).
But yes, adding the reset method would be very handy!

We do not envision having sufficient time to work on this before our intended release of 4.7.0. Hence, moving this issue to 4.8.0.

We usually clear the replication groups/contexts and then create the neccesary contexts again, what would be preferred/faster (compared to @vab2048 method)? Any important differences?

We usually clear the replication groups/contexts and then create the neccesary contexts again, what would be preferred/faster (compared to @vab2048 method)? Any important differences?

When running Axon Server in development mode, you can invoke purge-events on the CLI of Axon Server, for example.
This should keep the replication groups and contexts, just clearing out the event store. For example, for a fresh test run.
That's not to say your approach doesn't work, @TomDeBacker. It's just a bit more overhead.

After some discussion on this issue and with the Axon Framework team, we've decided not to go through with this issue.
To break down the suggestions:

Dev mode support: as stated by @lfgcampos, this is already present for Axon Server SE containers. As only SE containers support the development mode to begin with, there's no way to support this for AxonServer EE  containers.
Reset method: although the idea sounds nice, we have not found this to be supported by any other test-container implementations out there. I have a question pending with the test-containers team to figure out what their suggestion is, but we assume it to not be common place.

Due to the above pointers, we will close this issue with the label "won't fix."
If questions remain on the subject, feel free to comment further on this issue!


added AddListingCommand to AddressBookParser

Codecov Report

Merging #44 (215a2f3) into master (5a1e2f2) will decrease coverage by 0.03%.
The diff coverage is 73.68%.

@@             Coverage Diff              @@
##             master      #44      +/-   ##
============================================
- Coverage     64.55%   64.52%   -0.04%
+ Complexity      412      402      -10
============================================
  Files            79       76       -3
  Lines          1450     1398      -52
  Branches        152      146       -6
============================================
- Hits            936      902      -34
+ Misses          479      460      -19
- Partials         35       36       +1

Impacted Files
Coverage Δ

.../seedu/address/logic/parser/AddressBookParser.java
88.88% <0.00%> (-11.12%)
:arrow_down:

.../java/seedu/address/model/util/SampleDataUtil.java
20.00% <0.00%> (-5.00%)
:arrow_down:

src/main/java/seedu/address/ui/PersonCard.java
0.00% <0.00%> (ø)

...java/seedu/address/logic/commands/EditCommand.java
97.01% <100.00%> (-0.05%)
:arrow_down:

...a/seedu/address/logic/parser/AddCommandParser.java
100.00% <100.00%> (ø)

...c/main/java/seedu/address/model/person/Person.java
97.61% <100.00%> (-0.21%)
:arrow_down:

.../java/seedu/address/storage/JsonAdaptedPerson.java
100.00% <100.00%> (ø)

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


Log level options don't appear to have any effect

When log levels are set via command line or config file, they don't seem to be respected.
I would expect this command to disable the majority of the logging:
/var/lib/spoconnect/spotraop-linux-aarch64-static -d all=error

Even with that, the log is still full of "I" and "D" messages from the various components.

Isn't it just the logs related to core Spotify events? It's probably due to the cspot component where I can't disable logs