Comments (11)
Ah it was this issue I was thinking about with the encoding not being available in PowerShell 5.1 So yes set-content
with encoding would fix the encoding.
from azure.databricks.cicd.tools.
herewith I confirm that with #151 the both the line-endings & encoding are both as expected again, great!
compared to the previous approach it's also removing the trailing white line now, this does effects all notebooks once, but it seems cleaner this way.
from azure.databricks.cicd.tools.
Awesome. I will upgrade the release from preview to public this weekend.
from azure.databricks.cicd.tools.
Opened #139 with potential fix.
from azure.databricks.cicd.tools.
@RichieBzzzt as I commented with you latest commit your latest changes are causing us normalization issues we didn't had before.
I'd request you to undo the normalisation to LF and put back in the normalisation to CRLF.
also I don't see how #139 should fix the issue you're describing, as the normalisation happens in the RegEx Replace and therefore creating the file using New-Item vs. Set-Content shouldn't make a difference, right?
btw, great work on fixing the phantom header line!
from azure.databricks.cicd.tools.
furthermore we're getting issues on Unicode characters
afaik Set-Content is implicitly using ANSI encoding, causing this Unicode mismatch
while New-Item is using UTF8, handling Unicode characters properly
from azure.databricks.cicd.tools.
@pmooij we are getting issues on our machines where users are using macos, ubuntu and windows. We have build that run tests on windows and ubuntu. I am testing and fixing issues I encounter from other users via pull requests to the module which they then confirm as fixed.
The whole reason we go through this merry dance of altering content is because the databricks api inserts a comment on the first row of every notebook, and we aim to remove it. Part of me would be much happier to accept this comment and and then we can remove most of this [magic].(
azure.databricks.cicd.tools/Private/Get-Notebooks.ps1
Lines 10 to 22 in 71df836
I'll have a chat with the maintainer, see what he thinks. But in the meantime I suggest you pin yourself to a version that works for you whilst we figure out a solution that works for everyone using the module, or someone else adds a PR that fixes all the issues before we get there.
from azure.databricks.cicd.tools.
thanks for you reply Richie. don't get me wrong, I really appreciate all the effort you guys are putting into this module!
skipping the whole top comment line removal and the therewith associated line ending & encoding normalization hustle sounds good to me, sounds good to discuss with Simon.
regarding the disadvantage that EVERYONE would be hit by this change: that's something EVERYONE is experiencing with the move from CRLF to LF normalization as well, so to speak for myself: it wouldn't be a big issue for me to deal with once.
for now i'll add the normalization to CRLF on top in our own scripts so we can stay with the latest version of the module.
for the encoding I don't understand why you could use UTF8 on Get-Content but why you couldn't use UTF8 on Set-Content. I'd say this should still be in place given the current approach.
from azure.databricks.cicd.tools.
OK I've got a potential fix here but I'm going to do some manual testing on a couple of different OS's to double check it works.
from azure.databricks.cicd.tools.
OK I've got a potential fix here but I'm going to do some manual testing on a couple of different OS's to double check it works.
using [Environment]::NewLine & [system.io.file]::WriteAllText() with the correct UTF8 encoding looks very neat
from azure.databricks.cicd.tools.
Although fix with #151 is merged, suggest we keep issue open for a while, see if anything unexpected happens.
from azure.databricks.cicd.tools.
Related Issues (20)
- Extend `Add-DatabricksJarJob`: allow setting the maximum concurrent runs HOT 2
- Add-DatabrickSecretScope fails if scope exists HOT 1
- Uploading DBFS file, not appearing in filesystem.
- Adding a Secret Scope now returning HTTP 400 all of a sudden HOT 1
- Make parameter `-JarPath` optional (deprecated since 2016)
- EmailAlertsOnFailure exists on Add-DatabricksNotebookJob but it doesn't exist on Add-DatabricksSparkSubmitJob
- .dbc file import problem
- Example of how to connect via Service Principal in DevOps YAML
- databricksDeployDBFSFilesTask fails to copy files
- Service Principal Authentication is not working for Notebook Deployemnt Task HOT 1
- Close HOT 1
- Error while create new DataBricks cluster HOT 1
- Feature Request - Complete Deployment of Code to a Workspace
- Add-DatabricksLibrary works with Python whl files?
- Documentation leads to error
- Databricks Deploy Secret ends in (400) Bad Request
- Add-DatabricksDBFSFile does not support uploading hidden files in Powershell Core
- Add support for azure_attributes.availability Spot instances
- Add-DatabricksMemberToGroup uses Invoke-RestMethod with the -OutFile parameter but $OutFile isn't set
- Deploy Databricks files to DBFS task donot work with PLE enabled workspace HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure.databricks.cicd.tools.