- Notifications
You must be signed in to change notification settings - Fork406
use action-setup-atom#2459
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Uh oh!
There was an error while loading.Please reload this page.
codecovbot commentedMay 6, 2020 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Codecov Report
@@ Coverage Diff @@## master #2459 +/- ##==========================================- Coverage 93.46% 93.45% -0.01%========================================== Files 237 237 Lines 13234 13234 Branches 1906 1906 ==========================================- Hits 12369 12368 -1- Misses 865 866 +1
Continue to review full report at Codecov.
|
UziTech commentedMay 6, 2020 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
@smashwilson I'm sure this will need some changes but it is a good start for using the GitHub Action for installing Atom. When I was testing it out it looks like the windows tests were just failing because paths were getting converted to8.3 file paths
I can't seem to find the best way to handle that in node without a simple If you want me to close this PR and you want to take this and work on it in your own PR I would be fine with that. |
f1550b2
to8baa6f8
CompareUh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
aminya commentedDec 31, 2020 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
@smashwilson Could you take a look at this? Having better CI helps to debug theissues like this. setup-atom allows for installing stable, beta, and nightly. |
.github/workflows/ci.yml Outdated
# os: [ubuntu-18.04, macos-10.14, windows-2016] | ||
os:[ubuntu-18.04, macos-10.14] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
# os: [ubuntu-18.04, macos-10.14, windows-2016] | |
os:[ubuntu-18.04, macos-10.14] | |
os:[ubuntu-18.04, macos-10.14, windows-latest] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
The tests on windows are failing because of#2459 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Still, we should run them to observe if a new test starts to fail. We should continue to on error to not block the CI. This is much better than not running them.
-name:Run the testsif:${{ !contains(matrix.os, 'windows') }}run:atom --test spec -name:Run the tests on Windowsif:${{ contains(matrix.os, 'windows') }}continue-on-error:true# due to https://github.com/atom/github/pull/2459#issuecomment-624725972run:atom --test spec
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
I think a better solution would be to figure out how to fix the 8.3 path names in the tests and run them normally on windows. But as I said above, unless@smashwilson actually wants to merge this PR, it is just a POC.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
It should be pretty easy to create a function that can compare regular paths with FAT 8.3 paths in tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Definitely, in the long run, we can fix the test. The error, although fails the test, is just a path comparison. So for now, it is better to focus on the other failing tests in MacOS and Ubuntu which are blocking the Electron upgrade.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
unless@smashwilson actually wants to merge this PR, it is just a POC.
I'm 👍 on merging this if one of you has time to get it green!
And I'm 👍🏻 on including the Windows builds until we can fix that crash.
aminya commentedJan 1, 2021 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
I made a PR making this PR ready to go:UziTech#9.@UziTech Please merge it. Using this PR, we can find the reason that the tests fail in withatom/atom#21782 which is blocking the Electron upgrade inatom/atom#21777 |
aminya commentedJan 2, 2021 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
The failing tests are genuine failures. See here: Maybe, we should increase the timeout to see if the errors go away |
@aminya I updated this PR with the code from your PR on my repo. Looks like the tests are failing because of a timeout error. I'm not sure if that is something to do with this PR or not. |
aminya commentedJan 2, 2021 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
I don't think it is because of this PR (as mentioned inhere) One of thefailing tests:
It fails here exactly:
I wonder if it can be written without usingtest-until |
@UziTech Could you update this branch? |
Uh oh!
There was an error while loading.Please reload this page.
DeeDeeG commentedJan 28, 2021 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
About the CI failures here: @smashwilson has indicated multiple times that these tests ( They are notorious for flaking out and he has strongly considered deleting them. You can also observe that these tests have been patched in multiple ways to make their timeouts more lenient. They rely on actual filesystem access, which is very unreliable, particularly in CI where you are testing in some VM somewhere on a shared datacenter host machine. Take a look at these two separate workarounds that already exist for these flaky tests: https://github.com/atom/github/blob/v0.36.6/test/integration/file-patch.test.js#L18-L23 That said, I believe there is a solution. The following line is clearly meant toincrease timeout length to 9 seconds:https://github.com/atom/github/blob/v0.36.6/test/integration/file-patch.test.js#L22 However, upon closer inspection, I believe this linedecreases the timeout length. There is already a longer global timeout (30 seconds) set in the CI's env vars: https://github.com/atom/github/blob/v0.36.6/.github/workflows/ci.yml#L22 Here is my patch to fix this unintentionally restrictive and short timeout: (Weird I believe with my patch (see link just above), this PR would pass CI. |
Co-authored-by: Amin Yahyaabadi <aminyahyaabadi74@gmail.com>
I'm considering the possibility that this is failing simply because of how many jobs there are. 6 parallel matrix jobs, starting in parallel with a lint and snapshot test job (8 jobs in the very beginning). (Maybe the CI environment becomes super disk-bound -- on a tangent: note also that Atom's CI as of late has become massively parallel, and is at times very disk-heavy in each job). I'd like to try it with max parallel jobs of 2 and work up from there if it passes. |
That is unrelated. The failures are genuine failures that should be fixed. These matrix jobs run ondifferent machines. Nothing runs in parallel in one machine. |
DeeDeeG commentedJan 28, 2021 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
This PR is passing if rebased right on top of |
This comment has been minimized.
This comment has been minimized.
UziTech commentedJan 28, 2021 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
This PR only changes the way Atom and apm are downloaded and installed for the tests. It doesn't change the tests or code in any way. It basically takes the download scripts and puts them in an action. The only real difference is which folder Atom and apm are installed in (which I don't believe affects the tests). |
DeeDeeG commentedJan 29, 2021 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
I seem to have gotten this backward. CI here was already using |
Ohhh you know what? I wonder if those integration tests now rely on having .... I'm going to be upset if that's theentire build problem. |
DeeDeeG commentedJan 29, 2021 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Upset + bugfix identified is an emotional rollercoaster, which I have been on many times as well, but it ends up fixing the project, so it's the way it's gotta be sometimes. I definitely think the code iscapable of working correctly but isn't for some very superficial cause that no-one would immediately think of. So that ^ sounds believable. Edit:Ubuntu is green!! Edit Edit: macOS nightly is green!!!!! |
Oh yeah, this is a feeling I'm well acquainted with 😂 The better solution would be to rework the integration tests somehow to not rely on global git configuration settings (if we do end up keeping them). But let's see if this makes the build green, first. |
DeeDeeG commentedJan 29, 2021 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Not my fix to steal the thunder on, so thank you@aminya@UziTech and@smashwilson for sticking with this, but: Linux/macOS are green!!! (And Windows has been green the whole time, I think? So "knock on wood" but yeah I expect this will pass) |
aminya commentedJan 29, 2021 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
I knew that the issue is an assumption about the environment that does not hold true 😁. Happy to see that the assumption is finally identified now. |
Nice catch@smashwilson . Now to fix windows 🤔 |
DeeDeeG commentedJan 29, 2021 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
I just meant to emphasize macOS/Linux, as Windows has been green all along. There must be a git config loaded into the runner or something on Windows. |
aminya commentedJan 29, 2021 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
That's because of the |
Oh, right. Well that's a whole other conundrum then. But way beyond scope of this PR I think. |
aminya commentedJan 29, 2021 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
DeeDeeG commentedJan 29, 2021 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
I am seeing that there are some "expected tests" for the PR that (look like they) are never going to run. The runs for the latest commit are all green. |
Excellent. Thanks everyone 🎉 |
Uh oh!
There was an error while loading.Please reload this page.
Description of the Change
use
UziTech/action-setup-atom@v1
for installing Atom in GitHub ActionsScreenshot/Gif
N/A
Alternate Designs
N/A
Benefits
Cleaner workflow files and works on any os and channel easily
Possible Drawbacks
none
Applicable Issues
#2298 (comment)
Metrics
N/A
Tests
Ran tests on every platform
Documentation
N/A
Release Notes
N/A
User Experience Research (Optional)