Commit Graph

41326 Commits

Author SHA1 Message Date
DeeDeeG
06afb505d9 CI: Use commit date as the Rolling version number
The Rolling version number was previously set as the result of a
`date` command, implicitly using server time (as of the time the CI
build was running, in the time zone of the server), meaning the
version number could be different based on server timezone across many
regions the CI could happen to run in, based on the timing of re-runs,
or change due to slight differences in how runners were allocated to
run each job.

Most notably, this could lead to the different OS/arch builds having
different version numbers from the same overall CI build, since they
ran in separate tasks!

Now that we have multiple CI providers building the editor binaries,
we have rather drastically different timing of these runs, and the
version numbers are likely never going to sync up.

---

By setting the version number from the commit date, always in UTC,
Rolling versions on Cirrus should now always sync up
with an existing version as published from GitHub Actions.

This also means we can check the commit dates of recent commits to
`master` branch in order to know which exact commit a given Rolling
release version corresponds to.

---

This idea was worked on by a few people, and also thanks to this
StackOverflow answer:
https://stackoverflow.com/questions/21363187/git-show-dates-in-utc

Co-authored-by: Meadowsys <blazeykirin@gmail.com>
Co-authored-by: confused-Techie <dev@lhbasics.com>
2023-09-14 01:58:16 -04:00
DeeDeeG
80e830b573
Merge pull request #716 from pulsar-edit/CI-dont-update-CIRRUS_LAST_GREEN_CHANGE-for-skipped-builds
Cirrus: Don't update last good commit if CI skipped

Makes it so Cirrus Rolling doesn't skip, so we actually have
Rolling binaries/releases for ARM Linux + Apple Silicon again!
2023-09-13 22:14:16 -04:00
Andrew Dupont
69038a1c4c
Merge pull request #677 from savetheclocktower/tree-sitter-more-fixes
Tree-sitter running fixes (August edition)
2023-09-13 15:14:27 -07:00
DeeDeeG
152b80e524
Cirrus: Don't update last good commit if CI skipped
For builds that are effectively skipped, since their tasks are all
skipped or not scheduled in the first place, we shouldn't update
CIRRUS_LAST_GREEN_CHANGE.

Unfortunately, Cirrus *does* update that for builds with no or
all-skipped tasks, for now. They may fix it in the future, we have a
feature request open for it. But for now, this is the workaround.
2023-09-13 15:36:48 -04:00
Andrew Dupont
e9903ad9d6 Change behavior of “adjustment exceeds bounds” error
Previously, we threw an error when a scope adjustment violated its bounds constraints, but that's a bit disruptive for everyday use. Instead, we throw an error in dev mode (so that the grammar's author doesn't fail to notice the problem), but downgrade it to a warning outside of dev mode so that it's recoverable.

There's a chance that the warning will be _too_ subtle, but we'll give it a shot.

We also include more diagnostic information so that it's clearer exactly _where_ the violation is happening.
2023-09-11 15:14:19 -07:00
confused_techie
4e55d8cee4
Merge pull request #707 from pulsar-edit/manual-decaf-source
[status-bar & tree-view] Manual Decaf Source
2023-09-07 22:16:42 -07:00
confused-Techie
348d23095c Decaf tree-view.js using CoffeeScript 1.12.7 2023-09-04 14:19:08 -07:00
confused-Techie
d479de6a18 Call super before accessing this of classes 2023-09-04 12:34:58 -07:00
confused-Techie
4e7f8ba7de Properly export default-file-icons.js 2023-09-04 04:13:29 -07:00
confused-Techie
4160815e1c Manual decaf tree-view source 2023-09-04 03:12:53 -07:00
confused-Techie
5895c21048 Manual decaf status-bar source 2023-09-04 03:01:39 -07:00
confused-Techie
0c10f0a775 Machine decaf tree-view source 2023-09-04 02:32:01 -07:00
confused-Techie
f37b1dd1a8 Machine decaf status-bar source 2023-09-04 02:27:13 -07:00
confused_techie
cce8f048ec
Merge pull request #705 from pulsar-edit/consolidate-app-details
[core] Consolidate app detail logic into single module
2023-09-03 22:06:59 -07:00
confused_techie
b6592001cd
Merge pull request #706 from pulsar-edit/fix-release-notes
[about] Link release notes to `CHANGELOG.md` instead of tagged release of Pulsar
2023-09-03 21:51:07 -07:00
confused_techie
b39983e5a2
Merge pull request #170 from Sertonix/atom-protocol-handler-async
Remove `fs-plus` from atom-protocol-handler
2023-09-03 21:49:47 -07:00
confused-Techie
94a24dbec3 Add extra tests for good measure 2023-09-03 20:33:49 -07:00
confused-Techie
bb7e808c2c Use parameters to return placeholder rather than separate function 2023-09-03 20:11:56 -07:00
confused-Techie
dd6f862226 Remove spec for dev release notes 2023-09-03 20:02:53 -07:00
confused-Techie
4c0f5a7511 Don't return on caught error 2023-09-03 20:00:58 -07:00
confused-Techie
0d3c32305e Remove special handling for dev versions 2023-09-03 19:46:45 -07:00
confused-Techie
88fdb77d22 Ensure to replace all instances of . in version string 2023-09-03 17:20:16 -07:00
confused-Techie
8c309abbcb Introduce getPlaceholderConfigFilePath() to resolve failures within atom-application.js 2023-09-03 16:46:45 -07:00
confused-Techie
3cf49489cd Update specs, remove release channel testing, now that the logic has been fully removed 2023-09-03 16:32:17 -07:00
confused-Techie
edc9558acf Link release notes to CHANGELOG.md instead of tagged version 2023-09-03 15:47:33 -07:00
confused_techie
f7dd7b010a
Merge pull request #704 from pulsar-edit/fix-file-context-menu-icon
[core] Fix the icon used when registering Pulsar as a file handler in Windows
2023-09-03 15:06:31 -07:00
confused-Techie
03f2c30ee9 Migrate to getAppDetails()
Remove both `getAppName` and `getReleaseChannel` into `getAppDetails`. Move consumers over to new module. Rewrite config file path logic into shorter function, and move known users of this logic to new module
2023-09-03 14:50:39 -07:00
confused-Techie
0ea30397bd Set the icon path to an icon that actually exists 2023-09-03 13:56:08 -07:00
confused_techie
2b4b216830
Merge pull request #700 from pulsar-edit/package-specs-manual-decaf
Decaf Packages Spec
2023-09-02 18:29:32 -07:00
confused-Techie
6f1cd600e0 Merge branch 'master' into pr/170 2023-08-31 23:23:49 -07:00
confused-Techie
a91f6c6bee Ensure we bind our catch to a var 2023-08-31 23:23:46 -07:00
confused-Techie
5084785fcf Stop using this in install-panel-spec.js 2023-08-31 22:11:26 -07:00
DeeDeeG
2c5600d53f
Merge pull request #702 from pulsar-edit/settings-view-themes-no-guessing-core-theme-repositories
settings-view: Don't fix repository for core themes
2023-08-31 23:39:38 -04:00
confused-Techie
90110ad812 Bring back most decaffed code to install-panel-spec.js to fix errors 2023-08-31 20:30:08 -07:00
confused-Techie
c042505f27 Add back returns to install-panel-spec.js beforeEach() statements to see if it resolves CI errors 2023-08-31 19:57:54 -07:00
DeeDeeG
6bfad4c0db settings-view: Don't fix repository for core themes
Stop inserting a best-guess `repository` field for built-in themes'
package.json data if they lack one in their actual package.json file.

Follow-up to https://github.com/pulsar-edit/pulsar/pull/264.

Doing this for the themes panel as well, since we just did it for the
installed-packages panel, and since it's good to be consistent.
2023-08-31 21:18:12 -04:00
DeeDeeG
4592d18499
Merge pull request #701 from pulsar-edit/Cirrus-Rolling-dont-build-same-commit-multiple-times
Cirrus: Skip builds if same commit was previously built
2023-08-31 13:53:58 -04:00
DeeDeeG
48531274b7 Cirrus: Skip builds if same commit was previously built
Doing this to save on CI credits that might otherwise be spent
re-building the same commit multiple times.

Also prevents us from publishing the same git revision as multiple
Rolling release versions published days apart from one-another.

For details of these env vars and the `skip` keyword, see:
- https://cirrus-ci.org/guide/writing-tasks/#environment-variables
- https://cirrus-ci.org/guide/writing-tasks/#conditional-task-execution
2023-08-31 03:16:00 -04:00
DeeDeeG
a08121d12f
Merge pull request #699 from pulsar-edit/CI-tweak-Cirrus-build-filters
CI: Tweak Cirrus build filter to allow tag pushes
2023-08-31 03:06:01 -04:00
confused-Techie
fe251689d4 Match indentation between CoffeeScript source and decaf 2023-08-30 23:52:33 -07:00
confused-Techie
57965f8837 Finish manual decaf settings-view 2023-08-30 23:50:21 -07:00
confused-Techie
9d30cd2276 Begin manual decaf of settings-view 2023-08-30 22:45:30 -07:00
DeeDeeG
b5918acfce
CI: Tweak Cirrus build filter to allow tag pushes
We were trying to filter for a certain PR label before,
but inadvertently checked the wrong env var,
based on interpreting some guidance we got from Cirrus team.

In researching what it should be instead, it occurred to me we can
indeed use the `CIRRUS_TAG` env var to check for *any tag push*,
which should actually do pretty well at filtering for releases
after all, since releases are the only times we really push tags.
2023-08-31 01:02:19 -04:00
confused-Techie
275a58c4a5 Manual decaf tree-view specs 2023-08-30 21:38:51 -07:00
confused-Techie
0d5864f986 Manual decaf status-bar specs 2023-08-30 21:30:44 -07:00
confused-Techie
12643554cc Machine decaf settings-view specs 2023-08-30 21:24:16 -07:00
confused-Techie
01b3f992ed Machine decaf status-bar specs 2023-08-30 21:06:20 -07:00
confused-Techie
13033724c2 Machine decaf tree-view specs 2023-08-30 21:05:12 -07:00
DeeDeeG
cb99b1a135
Merge pull request #675 from pulsar-edit/auto-rename-binaries-in-CI-for-Regular-releases
Automatically rename binaries in CI during Regular releases
2023-08-31 00:02:07 -04:00
confused_techie
77ba18bef6
Merge pull request #264 from Sertonix/patch-1
remove repository fallback
2023-08-30 20:15:24 -07:00