:alert: `main` is currently broken. It was acciden...
# atmos-dev
e
alert
main
is currently broken. It was accidentally broken in https://github.com/cloudposse/atmos/pull/856, which broke Windows support because we had no tests run on Windows. We merged https://github.com/cloudposse/atmos/pull/875, which adds windows & macos tests, so until we resolve the breaking change in 856, windows tests are failing.
👀 1
✅ 1
merged 1
@Shubham Tholiya is looking into why the tests are failing
heads up @Matt Calhoun
v
let me know if you guys need help
e
@Matt Calhoun is also going to take a quick look.
Also, it's worth saying, until this is fixed, every release include 1.128 and later is broken.
✅ 1
a
Not sure if its worth noticing but any --help is not working either now. And I'm on a win machine.
e
Oh, wonderful, you're on windows~!
You can probably help us fix this problem
@Matt Calhoun opened a PR that fixed one of the problems.
Maybe you can expand this to the rest
But please confirm if. you can work on this now, otherwise @Shubham Tholiya was going to work on it. I'm not sure if he's on windows.
@Matt Calhoun is no longer working on this problem. So not sure who can pick it up fastest. We need to get this fixed ASAP.
The fix is something like
Copy code
// Conver the pattern to use / as the separatoratorator regardless of platform
	allOsSafePattern := filepath.ToSlash(pattern)

	base, cleanPattern := doublestar.SplitPattern(allOsSafePattern)
	f := os.DirFS(base)
and we need to do that probably in more places.
s
I am already working on this
🙌 1
I mean i am fixing code
👍 1
But good to know we have one more issue 😅
e
Ok, thanks @Shubham Tholiya
@Shubham Tholiya there is another problem I tried to fix, but won’t get back to this before Monday. https://github.com/cloudposse/atmos/pull/877
The problem is that in the matrix, when we run on windows, it doesn’t find atmos.exe. I am not to versed on windows, and tried to fix it in this PR. I think the general techniques are here, but still needs a tweak to get it working.
a
Hi, just a quck status update about the --help issue on Windows I reported above. It has gone once I rolled back the history of commits to this one 2394a9d fix tests (#868). On this commit as HEAD --help on Win works fine. @Andriy Knysh (Cloud Posse) fyi
👍 1
e
It should have started on 856 (1.128)
s
Thanks for the update @Andrey Kalmykov
e
@Andrey Kalmykov DM’d me some other info
@Andrey Kalmykov
Hi @Erik Osterman (Cloud Posse) Im not sure if its a windows problem at least with the --help. I wanted to rollback a few commits to see if the --help starts work and when and did
$ git log --oneline
80058a8 (HEAD -> main, origin/main, origin/add-vars-parameter, origin/HEAD) refactor loading and checking of atmos config (#869) fe637fa rename CliConfiguration to AtmosConfiguration (#867) 2394a9d fix tests (#868) 05606ad (upstream/main) atmos read storage interface (#865) 1defdce (tag: v1.130.0) package manager for vendor pull (#768) c4fe769 (tag: v1.129.0) Improve
!terraform.output
Atmos YAML function. Implement
static
remote state backend for
!terraform.output
and
atmos.Component
functions (#863) 2051592 (tag: v1.128.0) Replace path.Join with filepath.Join (#856) 74f3931 Mergify (#862) b205a0d (tag: v1.127.0) Implement Atmos Version Check Configuration (#844) e9a610e (tag: v1.126.0) add support for terraform version (#846) 11ec388 Add support for helmfile version command (#854) 58b46f5 Append new lines to end of json files before writing (#849) ed93da1 (tag: v1.125.0) Exclude abstract components from list (#851) 5681e54 (tag: v1.124.0) feat: add pagination and searching to
atmos docs
command (#848) c0e7054 (tag: v1.123.1) Fix terraform plan file should not be deleted (#855) 22c9b28 (tag: v1.123.0) Dynamic width terminal calculation for help (#815) b144ba2 Fix deployments inactivate (#843) 1bf5dc2 Update Atmos stack manifest JSON schema. Fix docs (#842) 36a595e Fix deployments overrides (#841) abddf14 (tag: v1.122.0) Ignore tmpl files to be validated (#830) bf867be Fix preview deployment (#839) 067a99f Refactor preview deployments workflows (#836)
So the - 2051592 (tag: v1.128.0) Replace path.Join with filepath.Join (#856) is still there with me but any changes as adding pointers to config schema/renaming it are gone and --help works. So I guess - refactor loading and checking of atmos config (#869) - has issues and as a side note adding pointers to config is major change that requires retesting everything. Please disregard as I caould be totally wrong and didnt want to point fingers to anyone.
@Vinny @Andrey Kalmykov @Shubham Tholiya please hold off on working on this one any more
🙌 3
I think we need @Andriy Knysh (Cloud Posse) to address this
👍 1
So part of the problem is that the paths are being returned as absolute paths on Windows and relative on linux
🙌 1
We should get them all as relative
This PR is almost ready. There’s only one failing test and I can’t figure it out.
@Andriy Knysh (Cloud Posse)
🙌 1
Main is now stable
🙌 1